javax.servlet.ServletRequest
| Modifier and Type | Field and Description |
|---|---|
| private ServletRequest |
| Access | Constructor and Description |
|---|---|
| public | ServletRequestWrapper(ServletRequest
the request)ServletRequest to be wrappedCreates a ServletRequest adaptor wrapping the given request object. |
| Modifier and Type | Method and Description |
|---|---|
| public AsyncContext | Returns: the AsyncContext that was created or reinitialized by the most recent invocation ofstartAsync or
startAsync(ServletRequest, ServletResponse) on
the wrapped requestImplements javax. startAsync or
startAsync(ServletRequest, ServletResponse) on the wrapped
request.
|
| public Object | getAttribute(String
a name)String specifying the name of the attributeImplements javax. |
| public Enumeration | getAttributeNames()
Implements javax. |
| public String | getCharacterEncoding()
Implements javax. |
| public int | getContentLength()
Implements javax. |
| public long | getContentLengthLong()
Implements javax. |
| public String | getContentType()
Implements javax. |
| public DispatcherType | Returns: the dispatcher type of the wrapped requestImplements javax. |
| public ServletInputStream | getInputStream()
Implements javax. |
| public String | getLocalAddr()
Implements javax. |
| public Locale | getLocale()
Implements javax. |
| public Enumeration | getLocales()
Implements javax. |
| public String | getLocalName()
Implements javax. |
| public int | getLocalPort()
Implements javax. |
| public String | getParameter(String
a name)String specifying the name of the parameterImplements javax. |
| public Map | getParameterMap()
Implements javax. |
| public Enumeration | getParameterNames()
Implements javax. |
| public String[] | getParameterValues(String
a name)String containing the name of
the parameter whose value is requestedImplements javax. |
| public String | getProtocol()
Implements javax. |
| public BufferedReader | getReader()
Implements javax. |
| public String | getRealPath(String
the path for which the real path is to be returned. path)Implements javax.
Deprecated
As of Version 2.1 of the Java Servlet API,
use
The default behavior of this method is to return
getRealPath(String path) on the wrapped request object.
ServletContext#getRealPath instead
|
| public String | getRemoteAddr()
Implements javax. |
| public String | getRemoteHost()
Implements javax. |
| public int | getRemotePort()
Implements javax. |
| public ServletRequest | |
| public RequestDispatcher | getRequestDispatcher(String
a path)String specifying the pathname
to the resource. If it is relative, it must be
relative against the current servlet.Implements javax. |
| public String | getScheme()
Implements javax. |
| public String | getServerName()
Implements javax. |
| public int | getServerPort()
Implements javax. |
| public ServletContext | Returns: the servlet context to which the wrapped servlet request was last dispatchedImplements javax. |
| public boolean | Returns: true if this request has been put into asynchronous mode, false otherwiseImplements javax. |
| public boolean | Returns: true if this request supports asynchronous operation, false otherwiseImplements javax. |
| public boolean | isSecure()
Implements javax. |
| public boolean | Returns: true if this ServletRequestWrapper wraps the given ServletRequest instance, false otherwisethe ServletRequest instance to search for wrapped)Checks (recursively) if this ServletRequestWrapper wraps the given
|
| public boolean | Returns: true if this ServletRequestWrapper wraps a ServletRequest of the given class type, false otherwisethe ServletRequest class type to
search for wrappedType)Checks (recursively) if this ServletRequestWrapper wraps a
|
| public void | removeAttribute(String
a name)String specifying
the name of the attribute to removeImplements javax. |
| public void | setAttribute(String
a name, Object String specifying
the name of the attributethe o)Object to be storedImplements javax. |
| public void | setCharacterEncoding(String
String containing the name of
the character encoding.Implements javax. |
| public void | setRequest(ServletRequest
the request)ServletRequest to be installedSets the request object being wrapped. |
| public AsyncContext | Returns: the (re)initialized AsyncContextImplements javax. ServletRequest#startAsync on the wrapped request object.
|
| public AsyncContext | Returns: the (re)initialized AsyncContextthe ServletRequest used to initialize the
AsyncContext servletRequest, ServletResponse the ServletResponse used to initialize the
AsyncContext servletResponse)Implements javax. ServletRequest#startAsync(ServletRequest, ServletResponse)
on the wrapped request object.
|
| request | back to summary |
|---|---|
| private ServletRequest request | |
| ServletRequestWrapper | back to summary |
|---|---|
| public ServletRequestWrapper(ServletRequest request) Creates a ServletRequest adaptor wrapping the given request object.
| |
| getAsyncContext | back to summary |
|---|---|
| public AsyncContext getAsyncContext() Implements javax. Gets the AsyncContext that was created or reinitialized by the
most recent invocation of
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Implements javax. The default behavior of this method is to call getAttribute(String name) on the wrapped request object.
| |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Implements javax. The default behavior of this method is to return getAttributeNames() on the wrapped request object.
| |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Implements javax. The default behavior of this method is to return getCharacterEncoding() on the wrapped request object.
| |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() Implements javax. The default behavior of this method is to return getContentLength() on the wrapped request object.
| |
| getContentLengthLong | back to summary |
|---|---|
| public long getContentLengthLong() Implements javax. The default behavior of this method is to return getContentLengthLong() on the wrapped request object.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements javax. The default behavior of this method is to return getContentType() on the wrapped request object.
| |
| getDispatcherType | back to summary |
|---|---|
| public DispatcherType getDispatcherType() Implements javax. Gets the dispatcher type of the wrapped request.
| |
| getInputStream | back to summary |
|---|---|
| public ServletInputStream getInputStream() throws IOException Implements javax. The default behavior of this method is to return getInputStream() on the wrapped request object.
| |
| getLocalAddr | back to summary |
|---|---|
| public String getLocalAddr() Implements javax. The default behavior of this method is to return getLocalAddr() on the wrapped request object.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements javax. The default behavior of this method is to return getLocale() on the wrapped request object.
| |
| getLocales | back to summary |
|---|---|
| public Enumeration Implements javax. The default behavior of this method is to return getLocales() on the wrapped request object.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Implements javax. The default behavior of this method is to return getLocalName() on the wrapped request object.
| |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Implements javax. The default behavior of this method is to return getLocalPort() on the wrapped request object.
| |
| getParameter | back to summary |
|---|---|
| public String getParameter(String name) Implements javax. The default behavior of this method is to return getParameter(String name) on the wrapped request object.
| |
| getParameterMap | back to summary |
|---|---|
| public Map Implements javax. The default behavior of this method is to return getParameterMap() on the wrapped request object.
| |
| getParameterNames | back to summary |
|---|---|
| public Enumeration Implements javax. The default behavior of this method is to return getParameterNames() on the wrapped request object.
| |
| getParameterValues | back to summary |
|---|---|
| public String[] getParameterValues(String name) Implements javax. The default behavior of this method is to return getParameterValues(String name) on the wrapped request object.
| |
| getProtocol | back to summary |
|---|---|
| public String getProtocol() Implements javax. The default behavior of this method is to return getProtocol() on the wrapped request object.
| |
| getReader | back to summary |
|---|---|
| public BufferedReader getReader() throws IOException Implements javax. The default behavior of this method is to return getReader() on the wrapped request object.
| |
| getRealPath | back to summary |
|---|---|
| public String getRealPath(String path) Implements javax. Deprecated As of Version 2.1 of the Java Servlet API,
use The default behavior of this method is to return getRealPath(String path) on the wrapped request object.
| |
| getRemoteAddr | back to summary |
|---|---|
| public String getRemoteAddr() Implements javax. The default behavior of this method is to return getRemoteAddr() on the wrapped request object.
| |
| getRemoteHost | back to summary |
|---|---|
| public String getRemoteHost() Implements javax. The default behavior of this method is to return getRemoteHost() on the wrapped request object.
| |
| getRemotePort | back to summary |
|---|---|
| public int getRemotePort() Implements javax. The default behavior of this method is to return getRemotePort() on the wrapped request object.
| |
| getRequest | back to summary |
|---|---|
| public ServletRequest getRequest() Return the wrapped request object.
| |
| getRequestDispatcher | back to summary |
|---|---|
| public RequestDispatcher getRequestDispatcher(String path) Implements javax. The default behavior of this method is to return getRequestDispatcher(String path) on the wrapped request object.
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Implements javax. The default behavior of this method is to return getScheme() on the wrapped request object.
| |
| getServerName | back to summary |
|---|---|
| public String getServerName() Implements javax. The default behavior of this method is to return getServerName() on the wrapped request object.
| |
| getServerPort | back to summary |
|---|---|
| public int getServerPort() Implements javax. The default behavior of this method is to return getServerPort() on the wrapped request object.
| |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements javax. Gets the servlet context to which the wrapped servlet request was last dispatched.
| |
| isAsyncStarted | back to summary |
|---|---|
| public boolean isAsyncStarted() Implements javax. Checks if the wrapped request has been put into asynchronous mode.
| |
| isAsyncSupported | back to summary |
|---|---|
| public boolean isAsyncSupported() Implements javax. Checks if the wrapped request supports asynchronous operation.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements javax. The default behavior of this method is to return isSecure() on the wrapped request object.
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(ServletRequest wrapped) Checks (recursively) if this ServletRequestWrapper wraps the given
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> wrappedType) Checks (recursively) if this ServletRequestWrapper wraps a
| |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Implements javax. The default behavior of this method is to call removeAttribute(String name) on the wrapped request object.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object o) Implements javax. The default behavior of this method is to return setAttribute(String name, Object o) on the wrapped request object.
| |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String enc) throws UnsupportedEncodingException Implements javax. The default behavior of this method is to set the character encoding on the wrapped request object.
| |
| setRequest | back to summary |
|---|---|
| public void setRequest(ServletRequest request) Sets the request object being wrapped.
| |
| startAsync | back to summary |
|---|---|
| public AsyncContext startAsync() throws IllegalStateException Implements javax. The default behavior of this method is to invoke
| |
| startAsync | back to summary |
|---|---|
| public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException Implements javax. The default behavior of this method is to invoke
| |