public class DefaultInteractionListener extends java.lang.Object implements InteractionListener
Constructor and Description |
---|
DefaultInteractionListener() |
Modifier and Type | Method and Description |
---|---|
void |
onInteractionError(Response response,
java.lang.Exception e)
This method is invoked on error.
|
void |
onReadyForFulfillment(Response response)
This is invoked when all information required to fulfill a transaction
has been recovered.
|
void |
promptUserToRespond(Response response,
LexServiceContinuation continuation)
This is invoked when input is required from the user.
|
public void onReadyForFulfillment(Response response)
InteractionListener
onReadyForFulfillment
in interface InteractionListener
response
- Response
, contains the service
response.public void promptUserToRespond(Response response, LexServiceContinuation continuation)
InteractionListener
promptUserToRespond
in interface InteractionListener
response
- Response
, contains the service
response.continuation
- LexServiceContinuation
, allows to
continue with the current transaction.public void onInteractionError(Response response, java.lang.Exception e)
InteractionListener
onInteractionError
in interface InteractionListener
response
- Response
, contains the service
response.e
- error reported as Exception
.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.