@Deprecated public class DefaultRequestDispatcher extends BaseRequestDispatcher<HandlerInput,Optional<Response>> implements RequestDispatcher
GenericRequestMapper to find a GenericRequestHandlerChain.
A GenericHandlerAdapter is used to execute the discovered request handler type.
GenericRequestInterceptor and GenericResponseInterceptor instances may be configured globally on this dispatcher
to be executed for all requests. Interceptors set on the GenericRequestHandlerChain level are also supported.
A GenericRequestMapper is used to find exception handlers in the event of an unhandled exception during
request processing..
This implementation routes incoming requests to a RequestMapper to find a
RequestHandlerChain. A HandlerAdapter
is used to execute the discovered request handler type.
RequestInterceptor and
ResponseInterceptor instances may be configured globally on this dispatcher to be
executed for all requests. Interceptors set on the RequestHandlerChain level are also
supported.
An ExceptionMapper is used to find exception handlers in the event of an unhandled exception during
request processing.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultRequestDispatcher.Builder
Deprecated.
DefaultRequestDispatcher Builder.
|
exceptionMapper, handlerAdapters, requestInterceptors, requestMappers, responseInterceptors| Modifier | Constructor and Description |
|---|---|
protected |
DefaultRequestDispatcher(Collection<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters,
Collection<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers,
GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper)
Deprecated.
Constructor for DefaultRequestDispatcher.
|
protected |
DefaultRequestDispatcher(Collection<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters,
Collection<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers,
GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper,
Collection<GenericRequestInterceptor<HandlerInput>> requestInterceptors,
Collection<GenericResponseInterceptor<HandlerInput,Optional<Response>>> responseInterceptors)
Deprecated.
Constructor for DefaultRequestDispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultRequestDispatcher.Builder |
builder()
Deprecated.
Static method to build an instance of Builder.
|
dispatch, forTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispatchprotected DefaultRequestDispatcher(Collection<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters, Collection<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers, GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper)
handlerAdapters - collection of handler adapters.requestMappers - collection of request mappers.exceptionMapper - exception mapper.protected DefaultRequestDispatcher(Collection<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters, Collection<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers, GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper, Collection<GenericRequestInterceptor<HandlerInput>> requestInterceptors, Collection<GenericResponseInterceptor<HandlerInput,Optional<Response>>> responseInterceptors)
handlerAdapters - collection of handler adapters.requestMappers - collection of request mappers.exceptionMapper - exception mapper.requestInterceptors - collection of request interceptors.responseInterceptors - collection of response interceptors.public static DefaultRequestDispatcher.Builder builder()
BaseRequestDispatcher.Builder.Copyright © 2023. All rights reserved.