Package com.kristensoft.kdc
Class KristenHttpClientEventAdapter
- java.lang.Object
-
- com.kristensoft.kdc.KristenHttpClientEventAdapter
-
- All Implemented Interfaces:
KristenHttpClientEventHandler
public class KristenHttpClientEventAdapter extends Object implements KristenHttpClientEventHandler
Provides an empty implementation ofKristenHttpClientEventHandler.Applications may extend this class and override only the HTTP client event methods they are interested in.
- Author:
- Charles B. Kozoyed
-
-
Constructor Summary
Constructors Constructor Description KristenHttpClientEventAdapter()Creates a client event adapter with no-op event handlers.
-
Method Summary
All Methods Instance Methods Concrete 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
public void onConnectionEstablished(KristenHttpClient httpClient)
Called when an HTTP connection is successfully established.- Specified by:
onConnectionEstablishedin interfaceKristenHttpClientEventHandler- Parameters:
httpClient- the HTTP client that reported the event
-
onConnectionFailed
public void onConnectionFailed(KristenHttpClient httpClient, Exception ex)
Called when an HTTP connection attempt fails.- Specified by:
onConnectionFailedin interfaceKristenHttpClientEventHandler- Parameters:
httpClient- the HTTP client that reported the eventex- the exception associated with the connection failure
-
onSendingSyncAgent
public void onSendingSyncAgent(Agent agent)
Called when a synchronous agent is being sent.- Specified by:
onSendingSyncAgentin interfaceKristenHttpClientEventHandler- Parameters:
agent- the synchronous agent being sent
-
onReceivedReply
public void onReceivedReply(Reply reply)
Called when a reply is received.- Specified by:
onReceivedReplyin interfaceKristenHttpClientEventHandler- Parameters:
reply- the reply received from the HTTP server
-
onSendingAsyncAgent
public void onSendingAsyncAgent(Agent agent)
Called when an asynchronous agent is being sent.- Specified by:
onSendingAsyncAgentin interfaceKristenHttpClientEventHandler- Parameters:
agent- the asynchronous agent being sent
-
-