Provides access to the request information needed for a request made to an HTTP servlet.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpServletRequest | request
The request for which the context is being provided. |
| Access | Constructor and Description |
|---|---|
| public | ServletRequestContext(final HttpServletRequest
The request to which this context applies. request)Construct a context for this request. |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: The content length of the request.Implements org. Retrieve the content length of the request. |
| public String | Returns: The character encoding for the request.Implements org. Retrieve the character encoding for the request. |
| public String | Returns: The content type of the request.Implements org. Retrieve the content type of the request. |
| public InputStream | Returns: The input stream for the request.Implements org. Retrieve the input stream for the request. |
| public String | Returns: a string representation of this object.Overrides java. Returns a string representation of this object. |
| request | back to summary |
|---|---|
| private final HttpServletRequest request The request for which the context is being provided. | |
| ServletRequestContext | back to summary |
|---|---|
| public ServletRequestContext(final HttpServletRequest request) Construct a context for this request.
| |
| contentLength | back to summary |
|---|---|
| public long contentLength() Implements org. Retrieve the content length of the request.
| |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Implements org. Retrieve the character encoding for the request. | |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements org. Retrieve the content type of the request. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements org. Retrieve the input stream for the request.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object. | |