Interface MessagingHandler
-
public interface MessagingHandlerInterface for MessagingHandler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy(ConnectionId connectionId)Triggered to release and dispose any sort of resources hold against a particular message flow.voidhandleError(ConnectionId connectionId)Handle Error.HandlerResponsehandleRequest(org.apache.axis2.context.MessageContext axis2MessageContext)Handle request.
-
-
-
Method Detail
-
handleRequest
HandlerResponse handleRequest(org.apache.axis2.context.MessageContext axis2MessageContext)
Handle request.- Parameters:
axis2MessageContext- axis2 message context.
-
handleError
void handleError(ConnectionId connectionId)
Handle Error. This method is invoked whenever an exception occurs in the request flow so that the implementations can clear any in-memory resources.- Parameters:
connectionId- Identifier of the connection.
-
destroy
void destroy(ConnectionId connectionId)
Triggered to release and dispose any sort of resources hold against a particular message flow. For example, if a WebSocket connection is terminated, this method can be used to notify the handler about this event.- Parameters:
connectionId- Identifier of the connection.
-
-