public class StubSessionContextRequest extends StubServletRequest implements ProtocolConnection
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
StubSessionContextRequest(WebApp webApp,
java.lang.String sessionId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProtocolRequestURL()
Returns a request URL for debugging/management.
|
HttpSession |
getSession(boolean create)
Returns a session.
|
boolean |
handleRequest()
Handles a new request.
|
boolean |
handleResume()
Handles a resumption of the connection for an async/comet request.
|
void |
init()
Initialize the connection.
|
boolean |
isWaitForRead()
Return true if the connection should wait for a read before
handling the request.
|
void |
onAttachThread()
Called when the connection is attached to a thread
|
void |
onCloseConnection()
Handles a close event when the connection is closed.
|
void |
onDetachThread()
Called when the connection is detached from a thread
|
void |
onStartConnection()
Called when the connection starts, i.e.
|
addAsyncListener, addAsyncListener, authenticate, clientDisconnect, getAbstractHttpRequest, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookie, getCookies, getDateHeader, getDispatcherType, getHasCookie, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalHost, getLocalName, getLocalPort, getMemorySession, getMethod, getPageContextPath, getPagePathInfo, getPageQueryString, getPageServletPath, getPageURI, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequestDepth, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getServletResponse, getSession, getSessionId, getSocketLink, getStream, getUriBuffer, getUriLength, getUserPrincipal, getVaryCookies, getWebApp, hasRequest, initStream, isAsyncStarted, isAsyncSupported, isComet, isConnectionClosed, isDuplex, isLoginRequested, isMultipartEnabled, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isSessionIdFromCookie, isSuspend, isSyntheticCacheHeader, isTop, isUserInRole, killKeepalive, login, login, logout, removeAttribute, requestLogin, setAsyncSupported, setAttribute, setCharacterEncoding, setHasCookie, setHeader, setSessionId, setSyntheticCacheHeader, setVaryCookie, startAsync, startAsync, upgradeProtocol
public StubSessionContextRequest(WebApp webApp, java.lang.String sessionId)
public HttpSession getSession(boolean create)
HttpServletRequest
getSession
in interface HttpServletRequest
getSession
in class StubServletRequest
create
- If true, then create a new session if none exists.public java.lang.String getProtocolRequestURL()
ProtocolConnection
getProtocolRequestURL
in interface ProtocolConnection
public boolean handleRequest() throws java.io.IOException
ProtocolConnection
handleRequest
in interface ProtocolConnection
java.io.IOException
public boolean handleResume() throws java.io.IOException
ProtocolConnection
handleResume
in interface ProtocolConnection
java.io.IOException
public void init()
ProtocolConnection
init
in interface ProtocolConnection
public boolean isWaitForRead()
ProtocolConnection
isWaitForRead
in interface ProtocolConnection
public void onCloseConnection()
ProtocolConnection
onCloseConnection
in interface ProtocolConnection
public void onStartConnection()
ProtocolConnection
onStartConnection
in interface ProtocolConnection
public void onAttachThread()
ProtocolConnection
onAttachThread
in interface ProtocolConnection
public void onDetachThread()
ProtocolConnection
onDetachThread
in interface ProtocolConnection