B - The Http body typepublic class HttpRequestWrapper<B> extends HttpMessageWrapper<B> implements HttpRequest<B>
HttpRequest.SCHEME_HTTP, SCHEME_HTTPS| Constructor and Description |
|---|
HttpRequestWrapper(HttpRequest<B> delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<MediaType> |
accept()
A list of accepted
MediaType instances sorted by their quality rating. |
java.util.Optional<java.security.cert.Certificate> |
getCertificate()
Retrieves the Certificate used for mutual authentication.
|
Cookies |
getCookies() |
HttpRequest<B> |
getDelegate() |
HttpVersion |
getHttpVersion() |
java.util.Optional<java.util.Locale> |
getLocale() |
HttpMethod |
getMethod() |
java.lang.String |
getMethodName() |
HttpParameters |
getParameters() |
java.lang.String |
getPath() |
java.net.InetSocketAddress |
getRemoteAddress() |
java.net.InetSocketAddress |
getServerAddress() |
java.lang.String |
getServerName() |
java.net.URI |
getUri() |
java.util.Optional<java.security.Principal> |
getUserPrincipal()
The user principal stored within the request.
|
<T extends java.security.Principal> |
getUserPrincipal(java.lang.Class<T> principalType)
The user principal stored within the request.
|
boolean |
isSecure() |
HttpRequest<B> |
setAttribute(java.lang.CharSequence name,
java.lang.Object value)
Sets an attribute on the message.
|
getAttributes, getBody, getBody, getBody, getHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, DELETE, DELETE, DELETE, GET, GET, HEAD, HEAD, mutate, OPTIONS, OPTIONS, PATCH, PATCH, POST, POST, PUT, PUTgetAttributes, getBody, getBody, getBody, getCharacterEncoding, getContentLength, getContentType, getHeadersremoveAttributegetAttribute, getAttributepublic HttpRequestWrapper(HttpRequest<B> delegate)
delegate - The Http Requestpublic HttpRequest<B> getDelegate()
getDelegate in class HttpMessageWrapper<B>public HttpVersion getHttpVersion()
getHttpVersion in interface HttpRequest<B>public java.util.Collection<MediaType> accept()
HttpRequestMediaType instances sorted by their quality rating.accept in interface HttpRequest<B>MediaType instances@NonNull public java.util.Optional<java.security.Principal> getUserPrincipal()
HttpRequestgetUserPrincipal in interface HttpRequest<B>@NonNull public <T extends java.security.Principal> java.util.Optional<T> getUserPrincipal(java.lang.Class<T> principalType)
HttpRequestgetUserPrincipal in interface HttpRequest<B>T - The principal typeprincipalType - The principal typepublic HttpRequest<B> setAttribute(java.lang.CharSequence name, java.lang.Object value)
MutableAttributeHoldersetAttribute in interface MutableAttributeHoldersetAttribute in interface HttpMessage<B>setAttribute in interface HttpRequest<B>name - The name of the attributevalue - The value of the attributepublic java.util.Optional<java.util.Locale> getLocale()
getLocale in interface HttpMessage<B>getLocale in interface HttpRequest<B>public java.util.Optional<java.security.cert.Certificate> getCertificate()
HttpRequestgetCertificate in interface HttpRequest<B>public Cookies getCookies()
getCookies in interface HttpRequest<B>Cookies instancepublic HttpParameters getParameters()
getParameters in interface HttpRequest<B>public HttpMethod getMethod()
getMethod in interface HttpRequest<B>public java.lang.String getMethodName()
getMethodName in interface HttpRequest<B>HttpMethod value for standard http methods).public java.net.URI getUri()
getUri in interface HttpRequest<B>public java.lang.String getPath()
getPath in interface HttpRequest<B>public java.net.InetSocketAddress getRemoteAddress()
getRemoteAddress in interface HttpRequest<B>public java.net.InetSocketAddress getServerAddress()
getServerAddress in interface HttpRequest<B>public java.lang.String getServerName()
getServerName in interface HttpRequest<B>public boolean isSecure()
isSecure in interface HttpRequest<B>