ServerHttpRequest implementation that is based on a HttpServletRequest.
| Modifier and Type | Field and Description |
|---|---|
| private ServerHttpAsyncRequestControl | |
| protected static final Charset | |
| private HttpHeaders | |
| private final HttpServletRequest | |
| private URI |
| Access | Constructor and Description |
|---|---|
| public | ServletServerHttpRequest(HttpServletRequest
the servlet request servletRequest)Construct a new instance of the ServletServerHttpRequest based on the
given |
| Modifier and Type | Method and Description |
|---|---|
| public ServerHttpAsyncRequestControl | getAsyncRequestControl(ServerHttpResponse response)
Implements org. |
| public InputStream | getBody()
Implements org. |
| private static InputStream | getBodyFromServletRequestParameters(HttpServletRequest request)
Use |
| public HttpHeaders | getHeaders()
Implements org. |
| public InetSocketAddress | getLocalAddress()
Implements org. |
| public HttpMethod | getMethod()
Implements org. |
| public Principal | getPrincipal()
Implements org. java. instance containing the name of the
authenticated user.
|
| public InetSocketAddress | getRemoteAddress()
Implements org. |
| public HttpServletRequest | |
| public URI | getURI()
Implements org. |
| public static URI | Returns: the initialized URIthe request servletRequest)Initialize a URI from the given Servlet request. |
| private static boolean |
| asyncRequestControl | back to summary |
|---|---|
| private ServerHttpAsyncRequestControl asyncRequestControl
| |
| FORM_CHARSET | back to summary |
|---|---|
| protected static final Charset FORM_CHARSET | |
| headers | back to summary |
|---|---|
| private HttpHeaders headers
| |
| servletRequest | back to summary |
|---|---|
| private final HttpServletRequest servletRequest | |
| uri | back to summary |
|---|---|
| private URI uri
| |
| ServletServerHttpRequest | back to summary |
|---|---|
| public ServletServerHttpRequest(HttpServletRequest servletRequest) Construct a new instance of the ServletServerHttpRequest based on the
given
| |
| getAsyncRequestControl | back to summary |
|---|---|
| public ServerHttpAsyncRequestControl getAsyncRequestControl(ServerHttpResponse response) Implements org. Doc from org. Return a control that allows putting the request in asynchronous mode so the response remains open until closed explicitly from the current or another thread.
| |
| getBody | back to summary |
|---|---|
| public InputStream getBody() throws IOException Implements org. Doc from org. Return the body of the message as an input stream.
| |
| getBodyFromServletRequestParameters | back to summary |
|---|---|
| private static InputStream getBodyFromServletRequestParameters(HttpServletRequest request) throws IOException Use | |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getLocalAddress | back to summary |
|---|---|
| public InetSocketAddress getLocalAddress() Implements org. Doc from org. Return the address on which the request was received.
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getPrincipal | back to summary |
|---|---|
| public Principal getPrincipal() Implements org. Doc from org. Return a If the user has not been authenticated, the method returns
| |
| getRemoteAddress | back to summary |
|---|---|
| public InetSocketAddress getRemoteAddress() Implements org. Doc from org. Return the address of the remote client.
| |
| getServletRequest | back to summary |
|---|---|
| public HttpServletRequest getServletRequest() Returns the | |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation). | |
| initURI | back to summary |
|---|---|
| public static URI initURI(HttpServletRequest servletRequest) Initialize a URI from the given Servlet request.
| |
| isFormPost | back to summary |
|---|---|
| private static boolean isFormPost(HttpServletRequest request) | |