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, upgradeProtocolpublic StubSessionContextRequest(WebApp webApp, java.lang.String sessionId)
public HttpSession getSession(boolean create)
HttpServletRequestgetSession in interface HttpServletRequestgetSession in class StubServletRequestcreate - If true, then create a new session if none exists.public java.lang.String getProtocolRequestURL()
ProtocolConnectiongetProtocolRequestURL in interface ProtocolConnectionpublic boolean handleRequest()
throws java.io.IOException
ProtocolConnectionhandleRequest in interface ProtocolConnectionjava.io.IOExceptionpublic boolean handleResume()
throws java.io.IOException
ProtocolConnectionhandleResume in interface ProtocolConnectionjava.io.IOExceptionpublic void init()
ProtocolConnectioninit in interface ProtocolConnectionpublic boolean isWaitForRead()
ProtocolConnectionisWaitForRead in interface ProtocolConnectionpublic void onCloseConnection()
ProtocolConnectiononCloseConnection in interface ProtocolConnectionpublic void onStartConnection()
ProtocolConnectiononStartConnection in interface ProtocolConnectionpublic void onAttachThread()
ProtocolConnectiononAttachThread in interface ProtocolConnectionpublic void onDetachThread()
ProtocolConnectiononDetachThread in interface ProtocolConnection