Package net.officefloor.server.http.impl
Class MaterialisingHttpRequest
- java.lang.Object
-
- net.officefloor.server.http.impl.MaterialisingHttpRequest
-
- All Implemented Interfaces:
HttpRequest
public class MaterialisingHttpRequest extends java.lang.Object implements HttpRequest
HttpRequestimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MaterialisingHttpRequest(java.util.function.Supplier<HttpMethod> methodSupplier, java.util.function.Supplier<java.lang.String> requestUriSupplier, HttpVersion version, HttpRequestHeaders headers, HttpRequestCookies cookies, ByteSequence entity)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestCookiesgetCookies()Obtains theHttpRequestCookies.ServerInputStreamgetEntity()Obtains theServerInputStreamto the entity of the HTTP request.HttpRequestHeadersgetHeaders()Obtains theHttpRequestHeaders.HttpMethodgetMethod()Obtains theHttpMethod.java.lang.StringgetUri()Obtains the request URI as provided on the request.HttpVersiongetVersion()Obtains theHttpVersion.
-
-
-
Constructor Detail
-
MaterialisingHttpRequest
public MaterialisingHttpRequest(java.util.function.Supplier<HttpMethod> methodSupplier, java.util.function.Supplier<java.lang.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 Detail
-
getMethod
public HttpMethod getMethod()
Description copied from interface:HttpRequestObtains theHttpMethod.- Specified by:
getMethodin interfaceHttpRequest- Returns:
HttpMethod.
-
getUri
public java.lang.String 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
public HttpVersion getVersion()
Description copied from interface:HttpRequestObtains theHttpVersion.- Specified by:
getVersionin interfaceHttpRequest- Returns:
HttpVersion.
-
getHeaders
public HttpRequestHeaders getHeaders()
Description copied from interface:HttpRequestObtains theHttpRequestHeaders.- Specified by:
getHeadersin interfaceHttpRequest- Returns:
HttpRequestHeaders.
-
getCookies
public HttpRequestCookies getCookies()
Description copied from interface:HttpRequestObtains theHttpRequestCookies.- Specified by:
getCookiesin interfaceHttpRequest- Returns:
HttpRequestCookies.
-
getEntity
public ServerInputStream 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.
-
-