public class ServletHttpRequest extends Object implements HttpRequest
HttpRequest
wrapping a HttpServletRequest
.Constructor and Description |
---|
ServletHttpRequest(javax.servlet.http.HttpServletRequest servletRequest)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
ServerInputStreamImpl |
getEntity()
Obtains the
ServerInputStream to the entity of the HTTP request. |
List<HttpHeader> |
getHeaders()
Obtains the
HttpHeader instances in the order they appear on the
request. |
String |
getMethod()
Obtains the HTTP method.
|
String |
getRequestURI()
Obtains the Request URI as provided on the request.
|
String |
getVersion()
Obtains the HTTP version of the request.
|
public ServletHttpRequest(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest
- HttpServletRequest
.public String getMethod()
HttpRequest
getMethod
in interface HttpRequest
public String getRequestURI()
HttpRequest
getRequestURI
in interface HttpRequest
public String getVersion()
HttpRequest
getVersion
in interface HttpRequest
public List<HttpHeader> getHeaders()
HttpRequest
HttpHeader
instances in the order they appear on the
request.getHeaders
in interface HttpRequest
HttpHeader
instances in the order they appear on the
request.public ServerInputStreamImpl getEntity() throws IOException
HttpRequest
ServerInputStream
to the entity of the HTTP request.getEntity
in interface HttpRequest
ServerInputStream
to the entity of the HTTP request.IOException
- If failure in reading the entity.Copyright © 2005–2016. All rights reserved.