ServerHttpRequest.Builder .
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Flux | |
| private String | |
| private final HttpHeaders | |
| private HttpMethod | |
| private final ServerHttpRequest | |
| private InetSocketAddress | |
| private SslInfo | |
| private URI | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ServerHttpRequest | build()
Implements org. Build a |
| public ServerHttpRequest. | contextPath(String contextPath)
Implements org. Set the contextPath to use. |
| private URI | |
| public ServerHttpRequest. | header(String
the header name headerName, String... the header values headerValues)Implements org. Set or override the specified header values under the given name. |
| public ServerHttpRequest. | headers(Consumer<HttpHeaders> headersConsumer)
Implements org. Manipulate request headers. |
| public ServerHttpRequest. | method(HttpMethod httpMethod)
Implements org. Set the HTTP method to return. |
| public ServerHttpRequest. | path(String path)
Implements org. Set the path to use instead of the
|
| public ServerHttpRequest. | remoteAddress(InetSocketAddress remoteAddress)
Implements org. Set the address of the remote client. |
| public ServerHttpRequest. | sslInfo(SslInfo sslInfo)
Implements org. Set the SSL session information. |
| public ServerHttpRequest. | uri(URI uri)
Implements org. Set the URI to use with the following conditions:
|
| body | back to summary |
|---|---|
| private final Flux<DataBuffer> body | |
| contextPath | back to summary |
|---|---|
| private String contextPath
| |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| httpMethod | back to summary |
|---|---|
| private HttpMethod httpMethod | |
| originalRequest | back to summary |
|---|---|
| private final ServerHttpRequest originalRequest | |
| remoteAddress | back to summary |
|---|---|
| private InetSocketAddress remoteAddress
| |
| sslInfo | back to summary |
|---|---|
| private SslInfo sslInfo
| |
| uri | back to summary |
|---|---|
| private URI uri | |
| uriPath | back to summary |
|---|---|
| private String uriPath
| |
| DefaultServerHttpRequestBuilder | back to summary |
|---|---|
| public DefaultServerHttpRequestBuilder(ServerHttpRequest original) | |
| build | back to summary |
|---|---|
| public ServerHttpRequest build() Implements org. Doc from org. Build a
| |
| contextPath | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set the contextPath to use. The given value must be a valid
| |
| getUriToUse | back to summary |
|---|---|
| private URI getUriToUse() | |
| header | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set or override the specified header values under the given name. If you need to add header values, remove headers, etc., use
| |
| headers | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Manipulate request headers. The provided
| |
| method | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set the HTTP method to return.
| |
| path | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set the path to use instead of the
| |
| remoteAddress | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set the address of the remote client.
| |
| sslInfo | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set the SSL session information. This may be useful in environments where TLS termination is done at the router, but SSL information is made available in some other way such as through a header.
| |
| uri | back to summary |
|---|---|
| public ServerHttpRequest. Implements org. Doc from org. Set the URI to use with the following conditions:
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Flux | |
| private final ServerHttpRequest | |
| private final InetSocketAddress | |
| private final SslInfo |
| Access | Constructor and Description |
|---|---|
| public | MutatedServerHttpRequest(URI uri, String contextPath, HttpMethod method, SslInfo sslInfo, InetSocketAddress remoteAddress, HttpHeaders headers, Flux<DataBuffer> body, ServerHttpRequest originalRequest)
|
| body | back to summary |
|---|---|
| private final Flux<DataBuffer> body | |
| originalRequest | back to summary |
|---|---|
| private final ServerHttpRequest originalRequest | |
| remoteAddress | back to summary |
|---|---|
| private final InetSocketAddress remoteAddress
| |
| sslInfo | back to summary |
|---|---|
| private final SslInfo sslInfo Hides org. | |
| MutatedServerHttpRequest | back to summary |
|---|---|
| public MutatedServerHttpRequest(URI uri, String contextPath, HttpMethod method, SslInfo sslInfo, InetSocketAddress remoteAddress, HttpHeaders headers, Flux<DataBuffer> body, ServerHttpRequest originalRequest) | |
| getBody | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the body of the message as a
| |
| getId | back to summary |
|---|---|
| public String getId() Overrides org. Implements org. Doc from org. Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.
| |
| getLocalAddress | back to summary |
|---|---|
| public InetSocketAddress getLocalAddress() Overrides default org. Doc from org. Return the local address the request was accepted on, if available. | |
| getNativeRequest | back to summary |
|---|---|
| public <T> T getNativeRequest() Implements abstract org. Doc from org. Return the underlying server response. Note This is exposed mainly for internal framework use such as WebSocket upgrades in the spring-webflux module.
| |
| getRemoteAddress | back to summary |
|---|---|
| public InetSocketAddress getRemoteAddress() Overrides default org. Doc from org. Return the remote address where this request is connected to, if available. | |
| initCookies | back to summary |
|---|---|
| protected MultiValueMap Implements abstract org. Doc from org. Obtain the cookies from the underlying "native" request and adapt those to
an Note that this method is invoked lazily on access to
| |
| initSslInfo | back to summary |
|---|---|
| protected SslInfo initSslInfo() Implements abstract org. Doc from org. Obtain SSL session information from the underlying "native" request. | |