public class HttpRequestImpl extends Object implements HttpRequest
HttpRequest
implementation.Constructor and Description |
---|
HttpRequestImpl(String httpVersion,
Serializable momento)
Initiate.
|
HttpRequestImpl(String method,
String requestURI,
String httpVersion,
List<HttpHeader> headers,
HttpEntity entity)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
ServerInputStream |
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 HttpRequestImpl(String method, String requestURI, String httpVersion, List<HttpHeader> headers, HttpEntity entity)
method
- Method.requestURI
- Request URI.httpVersion
- HTTP version.headers
- HttpHeader
instances.entity
- HttpEntity
to the entity.public HttpRequestImpl(String httpVersion, Serializable momento)
httpVersion
- HTTP version.momento
- Momento containing the state.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 ServerInputStream getEntity()
HttpRequest
ServerInputStream
to the entity of the HTTP request.getEntity
in interface HttpRequest
ServerInputStream
to the entity of the HTTP request.Copyright © 2005–2016. All rights reserved.