HeaderFieldsAccessor<RequestHeaderFields>, HttpBodyAccessor, HttpInputStreamAccessor, HttpMethodAccessor, HttpRequest, HttpServerRequest, UrlAccessorpublic class HttpServerRequestImpl extends HttpRequestImpl implements HttpServerRequest
HeaderFieldsAccessor.HeaderFieldsBuilder<T extends HeaderFields<?,?>,B extends HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>, HeaderFieldsAccessor.HeaderFieldsMutator<T extends HeaderFields<?,?>>, HeaderFieldsAccessor.HeaderFieldsProperty<T extends HeaderFields<?,?>>HttpBodyAccessor.HttpBodyBuilder<B extends HttpBodyAccessor.HttpBodyBuilder<B>>, HttpBodyAccessor.HttpBodyMutator, HttpBodyAccessor.HttpBodyProperty, HttpBodyAccessor.HttpBodyProvider<EXC extends Exception>HttpInputStreamAccessor.HttpInputStreamBuilder<B extends HttpInputStreamAccessor.HttpInputStreamBuilder<B>>, HttpInputStreamAccessor.HttpInputStreamMutator, HttpInputStreamAccessor.HttpInputStreamProperty, HttpInputStreamAccessor.HttpInputStreamProvider<EXC extends Exception>HttpMethodAccessor.HttpMethodBuilder<B extends HttpMethodAccessor.HttpMethodBuilder<B>>, HttpMethodAccessor.HttpMethodMutator, HttpMethodAccessor.HttpMethodPropertyUrlAccessor.UrlBuilder, UrlAccessor.UrlMutator, UrlAccessor.UrlProperty| Modifier and Type | Field | Description |
|---|---|---|
protected MediaTypeFactoryLookup |
_mediaTypeFactoryLookup |
_headerFields, _httpMethod, _url| Constructor | Description |
|---|---|
HttpServerRequestImpl(HttpMethod aHttpMethod,
Url aUrl,
RequestHeaderFields aHeaderFields,
InputStream aHttpInputStream,
MediaTypeFactoryLookup aMediaTypeFactoryLookup) |
Constructs a
HttpServerRequest with all required attributes. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getHttpBody() |
Retrieves the HTTP body from the HTTP body property.
|
InputStream |
getHttpInputStream() |
Retrieves the
InputStream from the HTTP InputStream
property. |
<REQ> REQ |
getRequest(Class<REQ> aRequestType) |
This method's implementation supports the
HttpBodyMap to
unmarshal an HTTP Request-Body into an HttpBodyMap when providing
the HttpBodyMap as request type. |
getHeaderFieldsgetHttpMethodgetHeaderFields, getHttpMethod, getUrlgetRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUrlprotected MediaTypeFactoryLookup _mediaTypeFactoryLookup
public HttpServerRequestImpl(HttpMethod aHttpMethod, Url aUrl, RequestHeaderFields aHeaderFields, InputStream aHttpInputStream, MediaTypeFactoryLookup aMediaTypeFactoryLookup)
HttpServerRequest with all required attributes.aHttpMethod - The HttpMethod with which the request has been
sent.aUrl - The Url from which to take the URL specific data.aHeaderFields - The RequestHeaderFields sent by the request.aHttpInputStream - The InputStream representing the
request's HTTP body.aMediaTypeFactoryLookup - The lookup factory for retrieving the
required MediaType factories.public <REQ> REQ getRequest(Class<REQ> aRequestType) throws BadRequestException
HttpBodyMap to
unmarshal an HTTP Request-Body into an HttpBodyMap when providing
the HttpBodyMap as request type.getRequest in interface HttpServerRequestREQ - the generic typeaRequestType - the request typeBadRequestException - the bad request exceptionpublic InputStream getHttpInputStream()
InputStream from the HTTP InputStream
property.getHttpInputStream in interface HttpInputStreamAccessorInputStream stored by the InputStream
property.public String getHttpBody()
getHttpBody in interface HttpBodyAccessorCopyright © 2018. All rights reserved.