Package org.gatein.pc.api.spi
Interface ServerContext
public interface ServerContext
Defines the request context contract. It's usage is related to the Servlet Container operational
environment.
- Version:
- $Revision: 6929 $
- Author:
- Julien Viet
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe dispatch callable contract. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(javax.servlet.ServletContext target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServerContext.Callable callable) Delegate to the request context the dispatching to the target servlet context using the specified spi elements.Return the scheme value.Return the server name value.intReturn the server port value.
-
Method Details
-
getScheme
String getScheme()Return the scheme value.- Returns:
- the scheme
-
getServerName
String getServerName()Return the server name value.- Returns:
- the server name
-
getServerPort
int getServerPort()Return the server port value.- Returns:
- the server port
-
dispatch
void dispatch(javax.servlet.ServletContext target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServerContext.Callable callable) throws Exception Delegate to the request context the dispatching to the target servlet context using the specified spi elements.- Parameters:
target- the target servlet contextcallable- the callable- Throws:
Exception- any exception
-