public class CardSpeechletResponseVerifier extends Object implements SpeechletResponseVerifier
SpeechletResponseVerifier to verify the Card returned by
SpeechletResponseEnvelope. In the current implementation, the
verify(SpeechletResponseEnvelope, Session) method logs warnings if the validation of the
card fails.
Note: This verifier currently does not not enforce response checks and always returns true. The primary purpose of this verifier is to log a warning in the app developer's runtime.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_URL_LENGTH |
| Constructor and Description |
|---|
CardSpeechletResponseVerifier() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(SpeechletResponseEnvelope responseEnvelope,
Session session)
Verifies a
SpeechletResponseEnvelope within the context of the Session in
which it was received. |
protected static final int MAX_URL_LENGTH
public boolean verify(SpeechletResponseEnvelope responseEnvelope, Session session)
SpeechletResponseVerifierSpeechletResponseEnvelope within the context of the Session in
which it was received. Returns true if the verify succeeded, false otherwise.verify in interface SpeechletResponseVerifierresponseEnvelope - SpeechletResponseEnvelope to verifysession - Session context within which to verify the callCopyright © 2016. All rights reserved.