Package com.kristensoft.kdc
Interface KristenHttpClientEventHandler
-
- All Known Implementing Classes:
KristenHttpClientEventAdapter
public interface KristenHttpClientEventHandlerReceives events generated by aKristenHttpClient.Applications may implement this interface to receive notifications about HTTP client connections, synchronous and asynchronous agent sends, and received replies.
- Author:
- Charles B. Kozoyed
- See Also:
KristenHttpClient,KristenHttpClientEventAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConnectionEstablished(KristenHttpClient httpClient)Called when an HTTP connection is successfully established.voidonConnectionFailed(KristenHttpClient httpClient, Exception ex)Called when an HTTP connection attempt fails.voidonReceivedReply(Reply reply)Called when a reply is received.voidonSendingAsyncAgent(Agent agent)Called when an asynchronous agent is being sent.voidonSendingSyncAgent(Agent agent)Called when a synchronous agent is being sent.
-
-
-
Method Detail
-
onConnectionEstablished
void onConnectionEstablished(KristenHttpClient httpClient)
Called when an HTTP connection is successfully established.- Parameters:
httpClient- the HTTP client that reported the event
-
onConnectionFailed
void onConnectionFailed(KristenHttpClient httpClient, Exception ex)
Called when an HTTP connection attempt fails.- Parameters:
httpClient- the HTTP client that reported the eventex- the exception associated with the connection failure
-
onSendingSyncAgent
void onSendingSyncAgent(Agent agent)
Called when a synchronous agent is being sent.- Parameters:
agent- the synchronous agent being sent
-
onReceivedReply
void onReceivedReply(Reply reply)
Called when a reply is received.- Parameters:
reply- the reply received from the HTTP server
-
onSendingAsyncAgent
void onSendingAsyncAgent(Agent agent)
Called when an asynchronous agent is being sent.- Parameters:
agent- the asynchronous agent being sent
-
-