public class SearchCocktailIntentHandler
extends java.lang.Object
implements com.amazon.ask.dispatcher.request.handler.RequestHandler
Constructor and Description |
---|
SearchCocktailIntentHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(com.amazon.ask.dispatcher.request.handler.HandlerInput input)
canHandle is a method to match the Speechpattern with the input of the user.
|
boolean |
emptyRequest()
Method to check whether a Request is Empty or not.
|
java.util.Optional<com.amazon.ask.model.Response> |
handle(com.amazon.ask.dispatcher.request.handler.HandlerInput input)
Handle Method to Handle a search Request.
|
public boolean canHandle(com.amazon.ask.dispatcher.request.handler.HandlerInput input)
canHandle
in interface com.amazon.ask.dispatcher.request.handler.RequestHandler
public java.util.Optional<com.amazon.ask.model.Response> handle(com.amazon.ask.dispatcher.request.handler.HandlerInput input)
handle
in interface com.amazon.ask.dispatcher.request.handler.RequestHandler
input
- will be the spoken text from the userpublic boolean emptyRequest()