WebHandler to the HttpHandler contract.
By default creates and configures a DefaultServerWebExchange and
then invokes the target WebHandler.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private ApplicationContext | |
| private ServerCodecConfigurer | |
| private static final ServerRequestObservationConvention | |
| private static final String | DISCONNECTED_CLIENT_LOG_CATEGORY
Log category to use for network failure after a client has gone away. |
| private static final DisconnectedClientHelper | |
| private boolean | enableLoggingRequestDetails
Whether to log potentially sensitive info (form data at DEBUG, headers at TRACE). |
| private ForwardedHeaderTransformer | |
| private LocaleContextResolver | |
| private static final Log | |
| private ServerRequestObservationConvention | |
| private ObservationRegistry | |
| private WebSessionManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
This method must be invoked after all properties have been set to complete initialization. |
| protected ServerWebExchange | |
| private String | |
| protected String | Returns: the String to display, never empty ornullthe request to format request)Format the request for logging purposes including HTTP method and URL. |
| public ApplicationContext | |
| public ServerCodecConfigurer | |
| public ForwardedHeaderTransformer | |
| public LocaleContextResolver | |
| public ServerRequestObservationConvention | getObservationConvention()
Return the Observation convention configured for server exchanges observations. |
| public ObservationRegistry | |
| public WebSessionManager | |
| public Mono | handle(ServerHttpRequest
current request request, ServerHttpResponse current response response)Implements org. |
| private Mono | handleUnresolvedError(ServerWebExchange exchange, ServerRequestObservationContext observationContext, Throwable ex)
|
| private void | |
| public void | setApplicationContext(ApplicationContext
the context applicationContext)Configure the |
| public void | setCodecConfigurer(ServerCodecConfigurer
the codec configurer to use codecConfigurer)Configure a custom |
| public void | setForwardedHeaderTransformer(ForwardedHeaderTransformer
the transformer to use transformer)Enable processing of forwarded headers, either extracting and removing, or remove only. |
| public void | setLocaleContextResolver(LocaleContextResolver
the locale context resolver to use resolver)Configure a custom |
| public void | setObservationConvention(ServerRequestObservationConvention
the observation convention to use observationConvention)Configure a |
| public void | setObservationRegistry(ObservationRegistry
the observation registry to use observationRegistry)Configure an |
| public void | setSessionManager(WebSessionManager
the session manager to use sessionManager)Configure a custom |
| applicationContext | back to summary |
|---|---|
| private ApplicationContext applicationContext
| |
| codecConfigurer | back to summary |
|---|---|
| private ServerCodecConfigurer codecConfigurer
| |
| DEFAULT_OBSERVATION_CONVENTION | back to summary |
|---|---|
| private static final ServerRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION | |
| DISCONNECTED_CLIENT_LOG_CATEGORY | back to summary |
|---|---|
| private static final String DISCONNECTED_CLIENT_LOG_CATEGORY Log category to use for network failure after a client has gone away.
| |
| disconnectedClientHelper | back to summary |
|---|---|
| private static final DisconnectedClientHelper disconnectedClientHelper | |
| enableLoggingRequestDetails | back to summary |
|---|---|
| private boolean enableLoggingRequestDetails Whether to log potentially sensitive info (form data at DEBUG, headers at TRACE). | |
| forwardedHeaderTransformer | back to summary |
|---|---|
| private ForwardedHeaderTransformer forwardedHeaderTransformer
| |
| localeContextResolver | back to summary |
|---|---|
| private LocaleContextResolver localeContextResolver | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| observationConvention | back to summary |
|---|---|
| private ServerRequestObservationConvention observationConvention | |
| observationRegistry | back to summary |
|---|---|
| private ObservationRegistry observationRegistry | |
| sessionManager | back to summary |
|---|---|
| private WebSessionManager sessionManager | |
| HttpWebHandlerAdapter | back to summary |
|---|---|
| public HttpWebHandlerAdapter(WebHandler delegate) | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() This method must be invoked after all properties have been set to complete initialization. | |
| createExchange | back to summary |
|---|---|
| protected ServerWebExchange createExchange(ServerHttpRequest request, ServerHttpResponse response) | |
| formatHeaders | back to summary |
|---|---|
| private String formatHeaders(HttpHeaders responseHeaders) | |
| formatRequest | back to summary |
|---|---|
| protected String formatRequest(ServerHttpRequest request) Format the request for logging purposes including HTTP method and URL. By default this prints the HTTP method, the URL path, and the query.
| |
| getApplicationContext | back to summary |
|---|---|
| public ApplicationContext getApplicationContext() Return the configured
| |
| getCodecConfigurer | back to summary |
|---|---|
| public ServerCodecConfigurer getCodecConfigurer() Return the configured | |
| getForwardedHeaderTransformer | back to summary |
|---|---|
| public ForwardedHeaderTransformer getForwardedHeaderTransformer() Return the configured
| |
| getLocaleContextResolver | back to summary |
|---|---|
| public LocaleContextResolver getLocaleContextResolver() Return the configured | |
| getObservationConvention | back to summary |
|---|---|
| public ServerRequestObservationConvention getObservationConvention() Return the Observation convention configured for server exchanges observations.
| |
| getObservationRegistry | back to summary |
|---|---|
| public ObservationRegistry getObservationRegistry() Return the configured
| |
| getSessionManager | back to summary |
|---|---|
| public WebSessionManager getSessionManager() Return the configured | |
| handle | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Handle the given request and write to the response.
| |
| handleUnresolvedError | back to summary |
|---|---|
| private Mono | |
| logResponse | back to summary |
|---|---|
| private void logResponse(ServerWebExchange exchange) | |
| setApplicationContext | back to summary |
|---|---|
| public void setApplicationContext(ApplicationContext applicationContext) Configure the
| |
| setCodecConfigurer | back to summary |
|---|---|
| public void setCodecConfigurer(ServerCodecConfigurer codecConfigurer) Configure a custom By default this is set to
| |
| setForwardedHeaderTransformer | back to summary |
|---|---|
| public void setForwardedHeaderTransformer(ForwardedHeaderTransformer transformer) Enable processing of forwarded headers, either extracting and removing, or remove only. By default this is not set.
| |
| setLocaleContextResolver | back to summary |
|---|---|
| public void setLocaleContextResolver(LocaleContextResolver resolver) Configure a custom By default this is set to
| |
| setObservationConvention | back to summary |
|---|---|
| public void setObservationConvention(ServerRequestObservationConvention observationConvention) Configure a
| |
| setObservationRegistry | back to summary |
|---|---|
| public void setObservationRegistry(ObservationRegistry observationRegistry) Configure an
| |
| setSessionManager | back to summary |
|---|---|
| public void setSessionManager(WebSessionManager sessionManager) Configure a custom By default this is set to
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Observation | |
| private final ServerRequestObservationContext | |
| private final AtomicBoolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Context | addToContext(Context
the original downstream operator's originalContext)ContextOverrides default reactor. Context exposed by the operator in order to store additional
data.
|
| public void | doFirst()
Overrides reactor. Implements reactor. Subscriber-Publisher interaction.
|
| public void | doOnCancel()
Overrides reactor. Implements reactor. Subscription.
|
| public void | doOnComplete()
Overrides reactor. Implements reactor. |
| public void | doOnError(Throwable
the exception that terminated the sequence error)Overrides reactor. Implements reactor. |
| private void |
| observation | back to summary |
|---|---|
| private final Observation observation | |
| observationContext | back to summary |
|---|---|
| private final ServerRequestObservationContext observationContext | |
| observationRecorded | back to summary |
|---|---|
| private final AtomicBoolean observationRecorded | |
| ObservationSignalListener | back to summary |
|---|---|
| pack-priv ObservationSignalListener(ServerRequestObservationContext observationContext) | |
| addToContext | back to summary |
|---|---|
| public Context addToContext(Context originalContext) Overrides default reactor. Doc from reactor. In some cases, the tap operation should alter the | |
| doFirst | back to summary |
|---|---|
| public void doFirst() throws Throwable Overrides reactor. Implements reactor. Doc from reactor. Handle the very beginning of the
Once the
| |
| doOnCancel | back to summary |
|---|---|
| public void doOnCancel() throws Throwable Overrides reactor. Implements reactor. Doc from reactor. Handle the downstream cancelling its currently observed
This handler is invoked before propagating the cancellation upstream, while
| |
| doOnComplete | back to summary |
|---|---|
| public void doOnComplete() throws Throwable Overrides reactor. Implements reactor. Doc from reactor. Handle graceful onComplete sequence termination.
This handler is invoked before propagating the completion downstream, while both
| |
| doOnError | back to summary |
|---|---|
| public void doOnError(Throwable error) throws Throwable Overrides reactor. Implements reactor. Doc from reactor. Handle onError sequence termination.
This handler is invoked before propagating the error downstream, while both
| |
| doOnTerminate | back to summary |
|---|---|
| private void doOnTerminate(ServerRequestObservationContext context) | |