public class DefaultRequestDispatcher extends Object implements RequestDispatcher
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 |
| Modifier and Type | Method and Description |
|---|---|
static DefaultRequestDispatcher.Builder |
builder() |
Optional<com.amazon.ask.model.Response> |
dispatch(HandlerInput input)
Dispatches an incoming request to the appropriate handling code and returns any output
|
public Optional<com.amazon.ask.model.Response> dispatch(HandlerInput input) throws AskSdkException
RequestDispatcherdispatch in interface RequestDispatcherinput - handler input containing the Request, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.ResponseAskSdkException - when an exception occurs during request processingpublic static DefaultRequestDispatcher.Builder builder()
Copyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.