public class SpeechletRequestDispatcher extends Object
SpeechletV2 and returns the resulting response.| Constructor and Description |
|---|
SpeechletRequestDispatcher(Speechlet speechlet) |
SpeechletRequestDispatcher(SpeechletV2 speechlet) |
| Modifier and Type | Method and Description |
|---|---|
SpeechletResponseEnvelope |
dispatchSpeechletCall(SpeechletRequestEnvelope<?> requestEnvelope,
Session session)
Processes the provided
SpeechletRequestEnvelope and generates an appropriate response
after dispatching the appropriate method calls on the SpeechletV2 provided at
construction time. |
public SpeechletRequestDispatcher(SpeechletV2 speechlet)
public SpeechletRequestDispatcher(Speechlet speechlet)
public SpeechletResponseEnvelope dispatchSpeechletCall(SpeechletRequestEnvelope<?> requestEnvelope, Session session) throws IOException, SpeechletRequestHandlerException, SpeechletException
SpeechletRequestEnvelope and generates an appropriate response
after dispatching the appropriate method calls on the SpeechletV2 provided at
construction time.requestEnvelope - the current requestsession - the session for the requestSpeechletResponseEnvelope generated after invoking the SpeechletV2IOException - may occur during request or response serializationSpeechletRequestHandlerException - indicates a problem with the request or responseSpeechletException - indicates a problem from within the included SpeechletCopyright © 2016. All rights reserved.