Package com.aoapps.servlet.subrequest
Class ThreadSafeServletRequest
java.lang.Object
javax.servlet.ServletRequestWrapper
com.aoapps.servlet.subrequest.ThreadSafeServletRequest
- All Implemented Interfaces:
ServletRequest
- Direct Known Subclasses:
ThreadSafeHttpServletRequest
Synchronizes access to the wrapped request.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) int
long
int
getParameter
(String name) String[]
getParameterValues
(String name) getRealPath
(String path) Deprecated.int
getRequestDispatcher
(String path) int
boolean
boolean
boolean
isSecure()
boolean
isWrapperFor
(Class wrappedType) boolean
isWrapperFor
(ServletRequest wrapped) void
removeAttribute
(String name) void
setAttribute
(String name, Object o) void
void
setRequest
(ServletRequest request) startAsync
(ServletRequest servletRequest, ServletResponse servletResponse)
-
Field Details
-
lock
-
-
Constructor Details
-
ThreadSafeServletRequest
-
-
Method Details
-
getRequest
- Overrides:
getRequest
in classServletRequestWrapper
-
setRequest
- Overrides:
setRequest
in classServletRequestWrapper
-
getAttribute
- Specified by:
getAttribute
in interfaceServletRequest
- Overrides:
getAttribute
in classServletRequestWrapper
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceServletRequest
- Overrides:
getAttributeNames
in classServletRequestWrapper
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceServletRequest
- Overrides:
getCharacterEncoding
in classServletRequestWrapper
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfaceServletRequest
- Overrides:
setCharacterEncoding
in classServletRequestWrapper
- Throws:
UnsupportedEncodingException
-
getContentLength
public int getContentLength()- Specified by:
getContentLength
in interfaceServletRequest
- Overrides:
getContentLength
in classServletRequestWrapper
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLong
in interfaceServletRequest
- Overrides:
getContentLengthLong
in classServletRequestWrapper
-
getContentType
- Specified by:
getContentType
in interfaceServletRequest
- Overrides:
getContentType
in classServletRequestWrapper
-
getInputStream
- Specified by:
getInputStream
in interfaceServletRequest
- Overrides:
getInputStream
in classServletRequestWrapper
- Throws:
IOException
-
getParameter
- Specified by:
getParameter
in interfaceServletRequest
- Overrides:
getParameter
in classServletRequestWrapper
-
getParameterMap
- Specified by:
getParameterMap
in interfaceServletRequest
- Overrides:
getParameterMap
in classServletRequestWrapper
-
getParameterNames
- Specified by:
getParameterNames
in interfaceServletRequest
- Overrides:
getParameterNames
in classServletRequestWrapper
-
getParameterValues
- Specified by:
getParameterValues
in interfaceServletRequest
- Overrides:
getParameterValues
in classServletRequestWrapper
-
getProtocol
- Specified by:
getProtocol
in interfaceServletRequest
- Overrides:
getProtocol
in classServletRequestWrapper
-
getScheme
- Specified by:
getScheme
in interfaceServletRequest
- Overrides:
getScheme
in classServletRequestWrapper
-
getServerName
- Specified by:
getServerName
in interfaceServletRequest
- Overrides:
getServerName
in classServletRequestWrapper
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfaceServletRequest
- Overrides:
getServerPort
in classServletRequestWrapper
-
getReader
- Specified by:
getReader
in interfaceServletRequest
- Overrides:
getReader
in classServletRequestWrapper
- Throws:
IOException
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfaceServletRequest
- Overrides:
getRemoteAddr
in classServletRequestWrapper
-
getRemoteHost
- Specified by:
getRemoteHost
in interfaceServletRequest
- Overrides:
getRemoteHost
in classServletRequestWrapper
-
setAttribute
- Specified by:
setAttribute
in interfaceServletRequest
- Overrides:
setAttribute
in classServletRequestWrapper
-
removeAttribute
- Specified by:
removeAttribute
in interfaceServletRequest
- Overrides:
removeAttribute
in classServletRequestWrapper
-
getLocale
- Specified by:
getLocale
in interfaceServletRequest
- Overrides:
getLocale
in classServletRequestWrapper
-
getLocales
- Specified by:
getLocales
in interfaceServletRequest
- Overrides:
getLocales
in classServletRequestWrapper
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfaceServletRequest
- Overrides:
isSecure
in classServletRequestWrapper
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfaceServletRequest
- Overrides:
getRequestDispatcher
in classServletRequestWrapper
-
getRealPath
Deprecated.- Specified by:
getRealPath
in interfaceServletRequest
- Overrides:
getRealPath
in classServletRequestWrapper
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePort
in interfaceServletRequest
- Overrides:
getRemotePort
in classServletRequestWrapper
-
getLocalName
- Specified by:
getLocalName
in interfaceServletRequest
- Overrides:
getLocalName
in classServletRequestWrapper
-
getLocalAddr
- Specified by:
getLocalAddr
in interfaceServletRequest
- Overrides:
getLocalAddr
in classServletRequestWrapper
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPort
in interfaceServletRequest
- Overrides:
getLocalPort
in classServletRequestWrapper
-
getServletContext
- Specified by:
getServletContext
in interfaceServletRequest
- Overrides:
getServletContext
in classServletRequestWrapper
-
startAsync
- Specified by:
startAsync
in interfaceServletRequest
- Overrides:
startAsync
in classServletRequestWrapper
- Throws:
IllegalStateException
-
startAsync
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException - Specified by:
startAsync
in interfaceServletRequest
- Overrides:
startAsync
in classServletRequestWrapper
- Throws:
IllegalStateException
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfaceServletRequest
- Overrides:
isAsyncStarted
in classServletRequestWrapper
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfaceServletRequest
- Overrides:
isAsyncSupported
in classServletRequestWrapper
-
getAsyncContext
- Specified by:
getAsyncContext
in interfaceServletRequest
- Overrides:
getAsyncContext
in classServletRequestWrapper
-
isWrapperFor
- Overrides:
isWrapperFor
in classServletRequestWrapper
-
isWrapperFor
- Overrides:
isWrapperFor
in classServletRequestWrapper
-
getDispatcherType
- Specified by:
getDispatcherType
in interfaceServletRequest
- Overrides:
getDispatcherType
in classServletRequestWrapper
-