public interface FbBotMillMonitor
FbBotMillContext.registerMonitor(FbBotMillMonitor).| Modifier and Type | Method and Description |
|---|---|
void |
onConfirmation(FacebookConfirmationMessage data)
Callback processed each time the bot sends data and gets a reply back
from the Facebook's server.
|
void |
onError(FacebookErrorMessage error)
Callback processed each time the bot sends data and gets an error back
from the Facebook's server.
|
void |
onGetReceived(javax.servlet.http.HttpServletRequest request)
Callback processed each time the
FbBotMillServlet receives an
HTTP GET request. |
void |
onPostReceived(javax.servlet.http.HttpServletRequest request,
MessengerCallback data)
Callback processed each time the
FbBotMillServlet receives an
HTTP POST request. |
void |
onValidationError(FbBotMillResponse response,
Set<javax.validation.ConstraintViolation<FbBotMillResponse>> constraintViolations)
Callback processed each time there is a validation error on the response
produced by the bots.
|
void onConfirmation(FacebookConfirmationMessage data)
data - the Facebook response to the last AutoReply the bot sent.void onError(FacebookErrorMessage error)
error - the Facebook error.void onPostReceived(javax.servlet.http.HttpServletRequest request,
MessengerCallback data)
FbBotMillServlet receives an
HTTP POST request. Please, notice that this method will be called
after the bots have processed it. This is because the method's
purpose is data monitoring, analysis and statistics. Since the operations
involved in this process may be heavy, in order to let the bots return a
response to the user quickly, this callback is postponed.request - the incoming raw servlet request.data - the Facebook incoming data.void onGetReceived(javax.servlet.http.HttpServletRequest request)
FbBotMillServlet receives an
HTTP GET request. Please, notice that this method will be called
after the bots have processed it. This is because the method's
purpose is data monitoring, analysis and statistics. Since the operations
involved in this process may be heavy, in order to let the bots return a
response to the user quickly, this callback is postponed.request - the incoming raw servlet request.void onValidationError(FbBotMillResponse response, Set<javax.validation.ConstraintViolation<FbBotMillResponse>> constraintViolations)
response - the invalid response produced by the bot.constraintViolations - the constraint violations for the current response.Copyright © 2017 BotMill. All rights reserved.