public class DispatcherHandler extends Object implements WebHandler, ApplicationContextAware
It can use any HandlerMapping implementation to control the routing of
requests to handler objects. HandlerMapping objects can be defined as beans in
the application context.
It can use any HandlerAdapter; this allows for using any handler interface.
HandlerAdapter objects can be added as beans in the application context.
It can use any HandlerResultHandler; this allows to process the result of
the request handling. HandlerResultHandler objects can be added as beans in the
application context.
| Constructor and Description |
|---|
DispatcherHandler() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
handle(ServerWebExchange exchange)
Handle the web server exchange.
|
protected void |
initStrategies(ApplicationContext context) |
void |
setApplicationContext(ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContextAwareInvoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and
MessageSourceAware, if applicable.
setApplicationContext in interface ApplicationContextAwareapplicationContext - the ApplicationContext object to be used by this objectApplicationContextException - in case of context initialization errorsBeansException - if thrown by application context methodsBeanInitializationExceptionprotected void initStrategies(ApplicationContext context)
public reactor.core.publisher.Mono<Void> handle(ServerWebExchange exchange)
WebHandlerhandle in interface WebHandlerexchange - the current server exchangeMono<Void> to indicate when request handling is complete