Package com.aoapps.servlet.subrequest
Class ThreadSafeHttpServletRequest
java.lang.Object
javax.servlet.ServletRequestWrapper
com.aoapps.servlet.subrequest.ThreadSafeServletRequest
com.aoapps.servlet.subrequest.ThreadSafeHttpServletRequest
- All Implemented Interfaces:
HttpServletRequest,ServletRequest
public class ThreadSafeHttpServletRequest
extends ThreadSafeServletRequest
implements HttpServletRequest
Synchronizes access to the wrapped request.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aoapps.servlet.subrequest.ThreadSafeServletRequest
ThreadSafeServletRequest.Lock -
Field Summary
Fields inherited from class com.aoapps.servlet.subrequest.ThreadSafeServletRequest
lockFields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(HttpServletResponse response) Cookie[]longgetDateHeader(String name) getHeaders(String name) intgetIntHeader(String name) getParts()getSession(boolean create) booleanbooleanDeprecated.booleanbooleanbooleanisUserInRole(String role) voidvoidlogout()voidsetRequest(ServletRequest request) <T extends HttpUpgradeHandler>
TMethods inherited from class com.aoapps.servlet.subrequest.ThreadSafeServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
Constructor Details
-
ThreadSafeHttpServletRequest
-
-
Method Details
-
setRequest
- Overrides:
setRequestin classThreadSafeServletRequest
-
getAuthType
- Specified by:
getAuthTypein interfaceHttpServletRequest
-
getCookies
- Specified by:
getCookiesin interfaceHttpServletRequest
-
getDateHeader
- Specified by:
getDateHeaderin interfaceHttpServletRequest
-
getHeader
- Specified by:
getHeaderin interfaceHttpServletRequest
-
getHeaders
- Specified by:
getHeadersin interfaceHttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceHttpServletRequest
-
getIntHeader
- Specified by:
getIntHeaderin interfaceHttpServletRequest
-
getMethod
- Specified by:
getMethodin interfaceHttpServletRequest
-
getPathInfo
- Specified by:
getPathInfoin interfaceHttpServletRequest
-
getPathTranslated
- Specified by:
getPathTranslatedin interfaceHttpServletRequest
-
getContextPath
- Specified by:
getContextPathin interfaceHttpServletRequest
-
getQueryString
- Specified by:
getQueryStringin interfaceHttpServletRequest
-
getRemoteUser
- Specified by:
getRemoteUserin interfaceHttpServletRequest
-
isUserInRole
- Specified by:
isUserInRolein interfaceHttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceHttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionIdin interfaceHttpServletRequest
-
getRequestURI
- Specified by:
getRequestURIin interfaceHttpServletRequest
-
getRequestURL
- Specified by:
getRequestURLin interfaceHttpServletRequest
-
getServletPath
- Specified by:
getServletPathin interfaceHttpServletRequest
-
getSession
- Specified by:
getSessionin interfaceHttpServletRequest
-
getSession
- Specified by:
getSessionin interfaceHttpServletRequest
-
changeSessionId
- Specified by:
changeSessionIdin interfaceHttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValidin interfaceHttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookiein interfaceHttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURLin interfaceHttpServletRequest
-
isRequestedSessionIdFromUrl
Deprecated.- Specified by:
isRequestedSessionIdFromUrlin interfaceHttpServletRequest
-
authenticate
- Specified by:
authenticatein interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
login
- Specified by:
loginin interfaceHttpServletRequest- Throws:
ServletException
-
logout
- Specified by:
logoutin interfaceHttpServletRequest- Throws:
ServletException
-
getParts
- Specified by:
getPartsin interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
getPart
- Specified by:
getPartin interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
upgrade
- Specified by:
upgradein interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
