public class SpeechletRequestHandler extends Object
SpeechletV2, executes that call, and returns the resulting
response bytes. This class can be hosted by a servlet (for instance, for a web server) or by AWS
Lambda. In either case, the logic is the same with different surrounding logic to handle the
generated output bytes.| Constructor and Description |
|---|
SpeechletRequestHandler(List<SpeechletRequestEnvelopeVerifier> requestEnvelopeVerifiers) |
SpeechletRequestHandler(List<SpeechletRequestVerifier> requestVerifiers,
List<SpeechletResponseVerifier> responseVerifiers)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
handleSpeechletCall(Speechlet speechlet,
byte[] serializedSpeechletRequest)
Deprecated.
Please use
handleSpeechletCall(SpeechletV2, byte[]) instead. |
byte[] |
handleSpeechletCall(SpeechletV2 speechlet,
byte[] serializedSpeechletRequest)
Processes the provided bytes as a request from the Alexa service and generates an appropriate
response after dispatching the request to the appropriate method calls on the
SpeechletV2 provided at construction time. |
@Deprecated public SpeechletRequestHandler(List<SpeechletRequestVerifier> requestVerifiers, List<SpeechletResponseVerifier> responseVerifiers)
public SpeechletRequestHandler(List<SpeechletRequestEnvelopeVerifier> requestEnvelopeVerifiers)
@Deprecated public byte[] handleSpeechletCall(Speechlet speechlet, byte[] serializedSpeechletRequest) throws IOException, SpeechletRequestHandlerException, SpeechletException
handleSpeechletCall(SpeechletV2, byte[]) instead.Speechlet provided at construction time.speechlet - the speechlet to be invokedserializedSpeechletRequest - the request coming from Alexa serviceSpeechletV2IOException - may occur during request or response serializationSpeechletRequestHandlerException - indicates a problem with the request or responseSpeechletException - indicates a problem from within the included SpeechletV2public byte[] handleSpeechletCall(SpeechletV2 speechlet, byte[] serializedSpeechletRequest) throws IOException, SpeechletRequestHandlerException, SpeechletException
SpeechletV2 provided at construction time.speechlet - the speechlet to be invokedserializedSpeechletRequest - the request coming from Alexa serviceSpeechletV2IOException - may occur during request or response serializationSpeechletRequestHandlerException - indicates a problem with the request or responseSpeechletException - indicates a problem from within the included SpeechletV2Copyright © 2016. All rights reserved.