Package net.officefloor.server.http.impl
Class MaterialisingHttpRequest
java.lang.Object
net.officefloor.server.http.impl.MaterialisingHttpRequest
- All Implemented Interfaces:
HttpRequest
HttpRequest implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionMaterialisingHttpRequest(Supplier<HttpMethod> methodSupplier, Supplier<String> requestUriSupplier, HttpVersion version, HttpRequestHeaders headers, HttpRequestCookies cookies, ByteSequence entity) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains theHttpRequestCookies.Obtains theServerInputStreamto the entity of the HTTP request.Obtains theHttpRequestHeaders.Obtains theHttpMethod.getUri()Obtains the request URI as provided on the request.Obtains theHttpVersion.
-
Constructor Details
-
MaterialisingHttpRequest
public MaterialisingHttpRequest(Supplier<HttpMethod> methodSupplier, Supplier<String> requestUriSupplier, HttpVersion version, HttpRequestHeaders headers, HttpRequestCookies cookies, ByteSequence entity) Instantiate.- Parameters:
methodSupplier-Supplierfor theHttpMethod.requestUriSupplier-Supplierfor the request URI.version-HttpVersion.headers-HttpRequestHeaders.cookies-HttpRequestCookies.entity-ByteSequencefor the HTTP entity.
-
-
Method Details
-
getMethod
Description copied from interface:HttpRequestObtains theHttpMethod.- Specified by:
getMethodin interfaceHttpRequest- Returns:
HttpMethod.
-
getUri
Description copied from interface:HttpRequestObtains the request URI as provided on the request.- Specified by:
getUriin interfaceHttpRequest- Returns:
- Request URI as provided on the request.
-
getVersion
Description copied from interface:HttpRequestObtains theHttpVersion.- Specified by:
getVersionin interfaceHttpRequest- Returns:
HttpVersion.
-
getHeaders
Description copied from interface:HttpRequestObtains theHttpRequestHeaders.- Specified by:
getHeadersin interfaceHttpRequest- Returns:
HttpRequestHeaders.
-
getCookies
Description copied from interface:HttpRequestObtains theHttpRequestCookies.- Specified by:
getCookiesin interfaceHttpRequest- Returns:
HttpRequestCookies.
-
getEntity
Description copied from interface:HttpRequestObtains theServerInputStreamto the entity of the HTTP request.- Specified by:
getEntityin interfaceHttpRequest- Returns:
ServerInputStreamto the entity of the HTTP request.
-