Input - handler input typeOutput - handler output typepublic class BaseRequestHandlerChain<Input,Output> extends Object implements GenericRequestHandlerChain<Input,Output>
GenericRequestHandler.| Modifier and Type | Class and Description |
|---|---|
static class |
BaseRequestHandlerChain.Builder<Input,Output,Self extends BaseRequestHandlerChain.Builder<Input,Output,Self>>
Base Request Handler Chain Builder.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<GenericExceptionHandler<Input,Output>> |
exceptionHandlers
List of exception handlers.
|
protected GenericRequestHandler<Input,Output> |
handler
Request handler responsible for processing an incoming request.
|
protected List<GenericRequestInterceptor<Input>> |
requestInterceptors
List of request interceptors.
|
protected List<GenericResponseInterceptor<Input,Output>> |
responseInterceptors
List of response interceptors.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseRequestHandlerChain(GenericRequestHandler<Input,Output> handler,
List<GenericRequestInterceptor<Input>> requestInterceptors,
List<GenericResponseInterceptor<Input,Output>> responseInterceptors,
List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
Constructor to build an instance of BaseRequestHandlerChain.
|
| Modifier and Type | Method and Description |
|---|---|
static <Input,Output> |
builder()
Returns an instance of Builder.
|
static <Input,Output,Self extends BaseRequestHandlerChain.Builder<Input,Output,Self>> |
forTypes(Class<Input> input,
Class<Output> output)
Returns an instance of Builder for the specified class types.
|
List<GenericExceptionHandler<Input,Output>> |
getExceptionHandlers()
.
|
GenericRequestHandler<Input,Output> |
getRequestHandler()
Returns the request handler.
|
List<GenericRequestInterceptor<Input>> |
getRequestInterceptors()
.
|
List<GenericResponseInterceptor<Input,Output>> |
getResponseInterceptors()
.
|
protected final GenericRequestHandler<Input,Output> handler
protected final List<GenericRequestInterceptor<Input>> requestInterceptors
protected final List<GenericResponseInterceptor<Input,Output>> responseInterceptors
protected final List<GenericExceptionHandler<Input,Output>> exceptionHandlers
protected BaseRequestHandlerChain(GenericRequestHandler<Input,Output> handler, List<GenericRequestInterceptor<Input>> requestInterceptors, List<GenericResponseInterceptor<Input,Output>> responseInterceptors, List<GenericExceptionHandler<Input,Output>> exceptionHandlers)
handler - request handler responsible for processing an incoming request.requestInterceptors - list of request interceptors.responseInterceptors - list of response interceptors.exceptionHandlers - list of exception handlers.public GenericRequestHandler<Input,Output> getRequestHandler()
getRequestHandler in interface GenericRequestHandlerChain<Input,Output>public List<GenericRequestInterceptor<Input>> getRequestInterceptors()
getRequestInterceptors in interface GenericRequestHandlerChain<Input,Output>public List<GenericResponseInterceptor<Input,Output>> getResponseInterceptors()
getResponseInterceptors in interface GenericRequestHandlerChain<Input,Output>public List<GenericExceptionHandler<Input,Output>> getExceptionHandlers()
getExceptionHandlers in interface GenericRequestHandlerChain<Input,Output>public static <Input,Output,Self extends BaseRequestHandlerChain.Builder<Input,Output,Self>> BaseRequestHandlerChain.Builder<Input,Output,Self> forTypes(Class<Input> input, Class<Output> output)
Input - handler input type.Output - handler output type.Self - generic of type self.input - input class type.output - output class type.BaseRequestHandlerChain.Builder.public static <Input,Output> BaseRequestHandlerChain.Builder<Input,Output,?> builder()
Input - handler input type.Output - handler output type.BaseRequestHandlerChain.Builder.Copyright © 2023. All rights reserved.