public interface RequestHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(HandlerInput input)
Returns true if the handler is capable of handling the current request and/or state
|
Optional<com.amazon.ask.model.Response> |
handle(HandlerInput input)
Handles the request.
|
boolean canHandle(HandlerInput input)
input - handler input containing the RequestEnvelope, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.Optional<com.amazon.ask.model.Response> handle(HandlerInput input)
Response should be returned by this method when processing an in-session request,
but may be omitted for certain out of session requests.input - handler input containing the RequestEnvelope, AttributesManager,
ServiceClientFactory, ResponseBuilder,
and other utilities.Optional that may contain a Response to be sent back by the skillCopyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.