Package org.gatein.pc.api.spi
Interface ServerContext
-
public interface ServerContextDefines 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 Classes Modifier and Type Interface Description static interfaceServerContext.CallableThe dispatch callable contract.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispatch(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.StringgetScheme()Return the scheme value.StringgetServerName()Return the server name value.intgetServerPort()Return the server port value.
-
-
-
Method Detail
-
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 ExceptionDelegate 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
-
-