private static class DefaultServerHttpRequestBuilder.MutativeDecorator extends ServerHttpRequestDecorator
ServerHttpRequest.Builder
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
contextPath |
private HttpHeaders |
httpHeaders |
private HttpMethod |
httpMethod |
private java.net.URI |
uri |
Constructor and Description |
---|
MutativeDecorator(ServerHttpRequest delegate,
HttpMethod httpMethod,
java.net.URI uri,
java.lang.String contextPath,
HttpHeaders httpHeaders) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextPath()
Returns the portion of the URL path that represents the context path for
the current
HttpHandler . |
HttpHeaders |
getHeaders()
Return the headers of this message.
|
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
java.net.URI |
getURI()
Return the URI of the request.
|
getBody, getCookies, getDelegate, getQueryParams, getRemoteAddress, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
mutate
private final HttpMethod httpMethod
private final java.net.URI uri
private final java.lang.String contextPath
private final HttpHeaders httpHeaders
public MutativeDecorator(ServerHttpRequest delegate, HttpMethod httpMethod, java.net.URI uri, java.lang.String contextPath, HttpHeaders httpHeaders)
public HttpMethod getMethod()
HttpRequest
getMethod
in interface HttpRequest
getMethod
in class ServerHttpRequestDecorator
null
if not resolvable (e.g. in case of a non-standard HTTP method)public java.net.URI getURI()
HttpRequest
getURI
in interface HttpRequest
getURI
in class ServerHttpRequestDecorator
null
)public java.lang.String getContextPath()
ServerHttpRequest
HttpHandler
. The context path is always at the
beginning of the request path. It starts with "/" but but does not end
with "/". This method may return an empty string if no context path is
configured.public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
getHeaders
in class ServerHttpRequestDecorator
null
)