public class ServletServerHttpRequest extends java.lang.Object implements ServerHttpRequest
ServerHttpRequest implementation that is based on a HttpServletRequest.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FORM_CHARSET |
protected static java.lang.String |
FORM_CONTENT_TYPE |
| Constructor and Description |
|---|
ServletServerHttpRequest(HttpServletRequest servletRequest)
Construct a new instance of the ServletServerHttpRequest based on the given
HttpServletRequest. |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getBody()
Return the body of the message as an input stream.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
HttpServletRequest |
getServletRequest()
Returns the
HttpServletRequest this object is based on. |
java.net.URI |
getURI()
Return the URI of the request.
|
protected static final java.lang.String FORM_CONTENT_TYPE
protected static final java.lang.String FORM_CHARSET
public ServletServerHttpRequest(HttpServletRequest servletRequest)
HttpServletRequest.servletRequest - the servlet requestpublic HttpServletRequest getServletRequest()
HttpServletRequest this object is based on.public HttpMethod getMethod()
HttpRequestgetMethod in interface HttpRequestpublic java.net.URI getURI()
HttpRequestgetURI in interface HttpRequestpublic HttpHeaders getHeaders()
HttpMessagegetHeaders in interface HttpMessagepublic java.io.InputStream getBody()
throws java.io.IOException
HttpInputMessagegetBody in interface HttpInputMessagejava.io.IOException - in case of I/O Errors