-
- All Implemented Interfaces:
-
com.hexagonkt.http.model.HttpBase,com.hexagonkt.http.model.HttpMessage,com.hexagonkt.http.model.HttpRequest,com.hexagonkt.http.server.model.HttpServerRequestPort
public final class HttpServerRequest implements HttpServerRequestPort
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpMethodmethodprivate final HttpProtocolprotocolprivate final Stringhostprivate final Integerportprivate final Stringpathprivate final HttpFields<QueryParameter>queryParametersprivate final HttpFields<Header>headersprivate final Objectbodyprivate final List<HttpPart>partsprivate final HttpFields<FormParameter>formParametersprivate final List<HttpCookie>cookiesprivate final ContentTypecontentTypeprivate final List<X509Certificate>certificateChainprivate final List<ContentType>acceptprivate final LongcontentLength
-
Constructor Summary
Constructors Constructor Description HttpServerRequest(HttpMethod method, HttpProtocol protocol, String host, Integer port, String path, HttpFields<QueryParameter> queryParameters, HttpFields<Header> headers, Object body, List<HttpPart> parts, HttpFields<FormParameter> formParameters, List<HttpCookie> cookies, ContentType contentType, List<X509Certificate> certificateChain, List<ContentType> accept, Long contentLength)
-
Method Summary
Modifier and Type Method Description HttpMethodgetMethod()HttpProtocolgetProtocol()StringgetHost()IntegergetPort()StringgetPath()HttpFields<QueryParameter>getQueryParameters()HttpFields<Header>getHeaders()ObjectgetBody()List<HttpPart>getParts()HttpFields<FormParameter>getFormParameters()List<HttpCookie>getCookies()ContentTypegetContentType()List<X509Certificate>getCertificateChain()List<ContentType>getAccept()LonggetContentLength()-
Methods inherited from class com.hexagonkt.http.server.model.HttpServerRequestPort
certificate -
Methods inherited from class com.hexagonkt.http.model.HttpBase
bodyString -
Methods inherited from class com.hexagonkt.http.model.HttpMessage
cookiesMap -
Methods inherited from class com.hexagonkt.http.model.HttpRequest
origin, partsMap, referer, url, userAgent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HttpServerRequest
HttpServerRequest(HttpMethod method, HttpProtocol protocol, String host, Integer port, String path, HttpFields<QueryParameter> queryParameters, HttpFields<Header> headers, Object body, List<HttpPart> parts, HttpFields<FormParameter> formParameters, List<HttpCookie> cookies, ContentType contentType, List<X509Certificate> certificateChain, List<ContentType> accept, Long contentLength)
-
-
Method Detail
-
getMethod
HttpMethod getMethod()
-
getProtocol
HttpProtocol getProtocol()
-
getHost
String getHost()
-
getPort
Integer getPort()
-
getPath
String getPath()
-
getQueryParameters
HttpFields<QueryParameter> getQueryParameters()
-
getHeaders
HttpFields<Header> getHeaders()
-
getBody
Object getBody()
-
getParts
List<HttpPart> getParts()
-
getFormParameters
HttpFields<FormParameter> getFormParameters()
-
getCookies
List<HttpCookie> getCookies()
-
getContentType
ContentType getContentType()
-
getCertificateChain
List<X509Certificate> getCertificateChain()
-
getAccept
List<ContentType> getAccept()
-
getContentLength
Long getContentLength()
-
-
-
-