| Modifier and Type | Method and Description |
|---|---|
Optional<com.amazon.ask.model.Response> |
RequestDispatcher.dispatch(HandlerInput input)
Dispatches an incoming request to the appropriate request handler and returns the output
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExceptionHandler.canHandle(HandlerInput input,
Throwable throwable)
Returns true if the implementation can handle the specified throwable
|
Optional<ExceptionHandler> |
ExceptionMapper.getHandler(HandlerInput input,
Throwable throwable)
Returns a suitable exception handler to dispatch the specified exception, if one exists.
|
Optional<com.amazon.ask.model.Response> |
ExceptionHandler.handle(HandlerInput input,
Throwable throwable)
Handles the exception
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ExceptionHandler> |
DefaultExceptionMapper.getHandler(HandlerInput handlerInput,
Throwable ex) |
| Modifier and Type | Method and Description |
|---|---|
Optional<com.amazon.ask.model.Response> |
DefaultRequestDispatcher.dispatch(HandlerInput input) |
| Modifier and Type | Method and Description |
|---|---|
HandlerInput |
HandlerInput.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RequestHandler.canHandle(HandlerInput input)
Returns true if the handler can dispatch the current request
|
Optional<com.amazon.ask.model.Response> |
HandlerAdapter.execute(HandlerInput input,
Object handler)
Executes the request handler with the supplied input.
|
Optional<com.amazon.ask.model.Response> |
RequestHandler.handle(HandlerInput input)
Accepts an input and generates a response
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
HandlerInput.matches(Predicate<HandlerInput> predicate) |
| Modifier and Type | Method and Description |
|---|---|
Optional<com.amazon.ask.model.Response> |
DefaultHandlerAdapter.execute(HandlerInput input,
Object handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
RequestInterceptor.process(HandlerInput input) |
void |
ResponseInterceptor.process(HandlerInput input,
Optional<com.amazon.ask.model.Response> response) |
| Modifier and Type | Method and Description |
|---|---|
Optional<RequestHandlerChain> |
RequestMapper.getRequestHandlerChain(HandlerInput input)
Routes the request to appropriate controller and retrieves request handler chains
|
| Modifier and Type | Method and Description |
|---|---|
Optional<RequestHandlerChain> |
DefaultRequestMapper.getRequestHandlerChain(HandlerInput input) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<HandlerInput> |
Predicates.canFulfillIntentName(String intentName)
Returns a predicate that returns to true if the incoming request is an
CanFulfillIntentRequest
for the given intent name. |
static Predicate<HandlerInput> |
Predicates.canFulfillSlotValue(String slotName,
String slotValue)
Returns a predicate that returns to true if the incoming request is an
CanFulfillIntentRequest
and contains the given slot name and value. |
static Predicate<HandlerInput> |
Predicates.intentName(String intentName)
Returns a predicate that returns to true if the incoming request is an
IntentRequest
for the given intent name. |
static Predicate<HandlerInput> |
Predicates.persistentAttribute(String key,
Object value)
Returns a predicate that returns to true if the persistent attributes included with the
HandlerInput
contain the expected attribute value. |
static Predicate<HandlerInput> |
Predicates.requestAttribute(String key,
Object value)
Returns a predicate that returns to true if the request attributes included with the
HandlerInput
contain the expected attribute value. |
static <T extends com.amazon.ask.model.Request> |
Predicates.requestType(Class<T> requestType)
Returns a predicate that returns to true if the incoming request is an instance
of the given request class.
|
static Predicate<HandlerInput> |
Predicates.selectedElementToken(String elementToken)
Returns a predicate that returns to true if the incoming request is an
ElementSelectedRequest
with the given token. |
static Predicate<HandlerInput> |
Predicates.sessionAttribute(String key,
Object value)
Returns a predicate that returns to true if session attributes are included with the
HandlerInput
and contain the expected attribute value. |
static Predicate<HandlerInput> |
Predicates.slotValue(String slotName,
String slotValue)
Returns a predicate that returns to true if the incoming request is an
IntentRequest
and contains the given slot name and value. |
Copyright © 2018. All rights reserved.