ServerWebExchange.
| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationContext | |
| private final Map | |
| private static final Mono | |
| private static final Mono | |
| private static final ResolvableType | |
| private final Mono | |
| private final LocaleContextResolver | |
| private Object | |
| private String | |
| private static final ResolvableType | |
| private final Mono | |
| private volatile boolean | |
| private volatile boolean | |
| private final ServerHttpRequest | |
| private final ServerHttpResponse | |
| private static final Set | |
| private final Mono | |
| private Function |
| Access | Constructor and Description |
|---|---|
| public | DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver)
|
| pack-priv | DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver, ApplicationContext applicationContext)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | addUrlTransformer(Function<String, String>
a URL transformation function to add transformer)Implements org. Register an additional URL transformation function for use with |
| public boolean | checkNotModified(Instant
the last-modified time lastModified)Implements org. An overloaded variant of |
| public boolean | checkNotModified(String
the entity tag for the underlying resource. etag)Implements org. An overloaded variant of |
| public boolean | checkNotModified(String
the entity tag that the application determined for the
underlying resource. This parameter will be padded with quotes (")
if necessary. eTag, Instant the last-modified timestamp that the application
determined for the underlying resource lastModified)Implements org. Check whether the requested resource has been modified given the supplied
|
| public Mono | cleanupMultipart()
Overrides default org. Cleans up any storage used for multipart handling. |
| private boolean | |
| private boolean | |
| public ApplicationContext | getApplicationContext()
Implements org. Return the |
| public Map | getAttributes()
Implements org. Return a mutable map of request attributes for the current exchange. |
| private static MediaType | |
| public Mono | getFormData()
Implements org. Return the form data from the body of the request if the Content-Type is
|
| public LocaleContext | getLocaleContext()
Implements org. Return the |
| public String | getLogPrefix()
Implements org. Return a log message prefix to use to correlate messages for this exchange. |
| public Mono | getMultipartData()
Implements org. Return the parts of a multipart request if the Content-Type is
|
| public <T extends Principal> Mono | getPrincipal()
Implements org. Return the authenticated user for the request, if any. |
| private static <E> HttpMessageReader | |
| public ServerHttpRequest | getRequest()
Implements org. Return the current HTTP request. |
| private HttpHeaders | |
| public ServerHttpResponse | getResponse()
Implements org. Return the current HTTP response. |
| private HttpHeaders | |
| public Mono | getSession()
Implements org. Return the web session for the current request. |
| private static Mono | |
| private Mono | |
| public boolean | isNotModified()
Implements org. Returns |
| private boolean | |
| private String | |
| public String | transformUrl(String
the URL to transform url)Implements org. Transform the given url according to the registered transformation function(s). |
| private void | |
| private void | |
| private boolean | |
| private void | |
| private boolean | |
| private boolean |
| applicationContext | back to summary |
|---|---|
| private final ApplicationContext applicationContext
| |
| attributes | back to summary |
|---|---|
| private final Map<String, Object> attributes | |
| EMPTY_FORM_DATA | back to summary |
|---|---|
| private static final Mono<MultiValueMap<String, String>> EMPTY_FORM_DATA | |
| EMPTY_MULTIPART_DATA | back to summary |
|---|---|
| private static final Mono<MultiValueMap<String, Part>> EMPTY_MULTIPART_DATA | |
| FORM_DATA_TYPE | back to summary |
|---|---|
| private static final ResolvableType FORM_DATA_TYPE | |
| formDataMono | back to summary |
|---|---|
| private final Mono<MultiValueMap<String, String>> formDataMono | |
| localeContextResolver | back to summary |
|---|---|
| private final LocaleContextResolver localeContextResolver | |
| logId | back to summary |
|---|---|
| private Object logId
| |
| logPrefix | back to summary |
|---|---|
| private String logPrefix | |
| MULTIPART_DATA_TYPE | back to summary |
|---|---|
| private static final ResolvableType MULTIPART_DATA_TYPE | |
| multipartDataMono | back to summary |
|---|---|
| private final Mono<MultiValueMap<String, Part>> multipartDataMono | |
| multipartRead | back to summary |
|---|---|
| private volatile boolean multipartRead | |
| notModified | back to summary |
|---|---|
| private volatile boolean notModified | |
| request | back to summary |
|---|---|
| private final ServerHttpRequest request | |
| response | back to summary |
|---|---|
| private final ServerHttpResponse response | |
| SAFE_METHODS | back to summary |
|---|---|
| private static final Set<HttpMethod> SAFE_METHODS | |
| sessionMono | back to summary |
|---|---|
| private final Mono<WebSession> sessionMono | |
| urlTransformer | back to summary |
|---|---|
| private Function<String, String> urlTransformer | |
| DefaultServerWebExchange | back to summary |
|---|---|
| public DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver) | |
| DefaultServerWebExchange | back to summary |
|---|---|
| pack-priv DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver, ApplicationContext applicationContext) | |
| addCachingResponseHeaders | back to summary |
|---|---|
| private void addCachingResponseHeaders(String eTag, Instant lastModified) | |
| addUrlTransformer | back to summary |
|---|---|
| public void addUrlTransformer(Function<String, String> transformer) Implements org. Doc from org. Register an additional URL transformation function for use with Note that the given function is applied after any previously registered functions. | |
| checkNotModified | back to summary |
|---|---|
| public boolean checkNotModified(Instant lastModified) Implements org. Doc from org. An overloaded variant of | |
| checkNotModified | back to summary |
|---|---|
| public boolean checkNotModified(String etag) Implements org. Doc from org. An overloaded variant of | |
| checkNotModified | back to summary |
|---|---|
| public boolean checkNotModified(String eTag, Instant lastModified) Implements org. Doc from org. Check whether the requested resource has been modified given the supplied
Note The HTTP specification recommends setting both
ETag and Last-Modified values, but you can also use
| |
| cleanupMultipart | back to summary |
|---|---|
| public Mono Overrides default org. Doc from org. Cleans up any storage used for multipart handling.
| |
| eTagStrongMatch | back to summary |
|---|---|
| private boolean eTagStrongMatch(String first, String second) | |
| eTagWeakMatch | back to summary |
|---|---|
| private boolean eTagWeakMatch(String first, String second) | |
| getApplicationContext | back to summary |
|---|---|
| public ApplicationContext getApplicationContext() Implements org. Doc from org. Return the | |
| getAttributes | back to summary |
|---|---|
| public Map Implements org. Doc from org. Return a mutable map of request attributes for the current exchange.
| |
| getContentType | back to summary |
|---|---|
private static MediaType getContentType(ServerHttpRequest request)
| |
| getFormData | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Return the form data from the body of the request if the Content-Type is
Note calling this method causes the request body to
be read and parsed in full and the resulting
| |
| getLocaleContext | back to summary |
|---|---|
| public LocaleContext getLocaleContext() Implements org. Doc from org. Return the
| |
| getLogPrefix | back to summary |
|---|---|
| public String getLogPrefix() Implements org. Doc from org. Return a log message prefix to use to correlate messages for this exchange.
The prefix is based on the value of the attribute
| |
| getMultipartData | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Return the parts of a multipart request if the Content-Type is
Note calling this method causes the request body to
be read and parsed in full and the resulting Note the contents of each part is not cached, and can only be read once.
| |
| getPrincipal | back to summary |
|---|---|
| public <T extends Principal> Mono Implements org. Doc from org. Return the authenticated user for the request, if any.
| |
| getReader | back to summary |
|---|---|
private static <E> HttpMessageReader
| |
| getRequest | back to summary |
|---|---|
| public ServerHttpRequest getRequest() Implements org. Doc from org. Return the current HTTP request.
| |
| getRequestHeaders | back to summary |
|---|---|
| private HttpHeaders getRequestHeaders() | |
| getResponse | back to summary |
|---|---|
| public ServerHttpResponse getResponse() Implements org. Doc from org. Return the current HTTP response.
| |
| getResponseHeaders | back to summary |
|---|---|
| private HttpHeaders getResponseHeaders() | |
| getSession | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Return the web session for the current request. Always guaranteed to
return an instance either matching to the session id requested by the
client, or with a new session id either because the client did not
specify one or because the underlying session had expired. Use of this
method does not automatically create a session. See
| |
| initFormData | back to summary |
|---|---|
| private static Mono | |
| initMultipartData | back to summary |
|---|---|
| private Mono | |
| isNotModified | back to summary |
|---|---|
| public boolean isNotModified() Implements org. Doc from org. Returns
| |
| matchRequestedETags | back to summary |
|---|---|
| private boolean matchRequestedETags(List<String> requestedETags, String eTag, boolean weakCompare) | |
| padEtagIfNecessary | back to summary |
|---|---|
private String padEtagIfNecessary(String etag)
| |
| transformUrl | back to summary |
|---|---|
| public String transformUrl(String url) Implements org. Doc from org. Transform the given url according to the registered transformation function(s).
By default, this method returns the given | |
| updateResponseIdempotent | back to summary |
|---|---|
| private void updateResponseIdempotent(String eTag, Instant lastModified) | |
| updateResponseStateChanging | back to summary |
|---|---|
| private void updateResponseStateChanging(String eTag, Instant lastModified) | |
| validateIfMatch | back to summary |
|---|---|
| private boolean validateIfMatch(String eTag) | |
| validateIfModifiedSince | back to summary |
|---|---|
| private void validateIfModifiedSince(Instant lastModified) | |
| validateIfNoneMatch | back to summary |
|---|---|
| private boolean validateIfNoneMatch(String eTag) | |
| validateIfUnmodifiedSince | back to summary |
|---|---|
| private boolean validateIfUnmodifiedSince(Instant lastModified) | |