public class ServletServerHttpRequest extends Object implements ServerHttpRequest
ServerHttpRequest
implementation that is based on a HttpServletRequest
.Modifier and Type | Field and Description |
---|---|
protected static String |
FORM_CHARSET |
protected static 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 |
---|---|
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. |
URI |
getURI()
Return the URI of the request.
|
protected static final String FORM_CONTENT_TYPE
protected static final String FORM_CHARSET
public ServletServerHttpRequest(HttpServletRequest servletRequest)
HttpServletRequest
.servletRequest
- the servlet requestpublic HttpServletRequest getServletRequest()
HttpServletRequest
this object is based on.public HttpMethod getMethod()
HttpRequest
getMethod
in interface HttpRequest
public URI getURI()
HttpRequest
getURI
in interface HttpRequest
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
public InputStream getBody() throws IOException
HttpInputMessage
getBody
in interface HttpInputMessage
IOException
- in case of I/O Errors