public interface ServletContainerContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServletContainerContext.Registration
The callback interface that a servlet container context can obtain from its registration against
the
org.jboss.portal.web.ServletContainer singleton. |
| Modifier and Type | Method and Description |
|---|---|
String |
getContainerInfo()
Returns the name and version of the servlet container in which the
context is running.
|
Object |
include(javax.servlet.ServletContext targetServletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestDispatchCallback callback,
Object handback)
Generic detyped request dispatch to a servlet context using the include mechanism.
|
void |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Credentials credentials)
Authentication support.
|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Authentication support.
|
void |
setCallback(ServletContainerContext.Registration registration)
Install the call back object.
|
void |
unsetCallback(ServletContainerContext.Registration registration)
Uninstall the call back object.
|
Object include(javax.servlet.ServletContext targetServletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestDispatchCallback callback, Object handback) throws javax.servlet.ServletException, IOException
targetServletContext - the target servlet context to dispatch torequest - the request valid in the current servlet contextresponse - the response valid in the current servlet contextcallback - the callback to perform after the dispatch operationhandback - the handback object that will be provided to the callbackjavax.servlet.ServletException - any servlet exceptionIOException - any io exceptionvoid setCallback(ServletContainerContext.Registration registration)
registration - the call backvoid unsetCallback(ServletContainerContext.Registration registration)
registration - the call backvoid login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Credentials credentials)
throws AuthenticationException,
javax.servlet.ServletException,
IOException
request - the request valid in the current servlet contextresponse - the response valid in the current servlet contextcredentials - the credentials which try to authenticateAuthenticationException - when authentication failsjavax.servlet.ServletException - any servlet exception that would prevent authentication to be performedIOException - any io exception that would prevent authentication to be performedvoid logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
request - the request valid in the current servlet contextresponse - the response valid in the current servlet contextjavax.servlet.ServletExceptionString getContainerInfo()
The form of the returned string is containername/versionnumber.
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.