public class ResponseSizeSpeechletResponseVerifier extends Object implements SpeechletResponseVerifier
SpeechletResponseVerifier to verify the size of the complete response returned in
SpeechletResponseEnvelope. In the current implementation, the
verify(SpeechletResponseEnvelope, Session) method logs a warning if the response size in
bytes exceeds .
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.
| Constructor and Description |
|---|
ResponseSizeSpeechletResponseVerifier() |
| 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. |
public ResponseSizeSpeechletResponseVerifier()
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.