ServletRequest
| Modifier and Type | Field and Description |
|---|---|
| private ServletRequest |
| Access | Constructor and Description |
|---|---|
| public | ServletRequestWrapper(ServletRequest request)
Creates a ServletRequest adaptor wrapping the given request object. |
| Modifier and Type | Method and Description |
|---|---|
| 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 String | getContentType()
Implements 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 path)
Implements javax. |
| 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 boolean | isSecure()
Implements javax. |
| 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
a enc)String containing the name of
the chararacter encoding.Implements javax. |
| public void |
| request | back to summary |
|---|---|
| private ServletRequest request | |
| ServletRequestWrapper | back to summary |
|---|---|
| public ServletRequestWrapper(ServletRequest request) Creates a ServletRequest adaptor wrapping the given request object.
| |
| 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.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements javax. The default behavior of this method is to return getContentType() on the wrapped request object.
| |
| 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. 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.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements javax. The default behavior of this method is to return isSecure() on the wrapped request object.
| |
| 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.
| |