|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacRequestAdapter
Provides an empty implementation of SnacRequestListener
. This is
convenient in that one can subclass SnacRequestAdapter
to avoid
having to write rather ugly empty methods to fulfill the
SnacRequestListener
contract, handling events you don't
particularly care about.
Constructor Summary | |
SnacRequestAdapter()
|
Method Summary | |
void |
handleResponse(SnacResponseEvent e)
Called when a SNAC packet is received in response to a request. |
void |
handleSent(SnacRequestSentEvent e)
Called when an outgoing SNAC request was sent over a SNAC connection. |
void |
handleTimeout(SnacRequestTimeoutEvent event)
Called when a SNAC packet "times out" and is removed from the request list of its parent ClientSnacProcessor . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SnacRequestAdapter()
Method Detail |
public void handleSent(SnacRequestSentEvent e)
OutgoingSnacRequestListener
handleSent
in interface OutgoingSnacRequestListener
e
- an object describing the eventpublic void handleResponse(SnacResponseEvent e)
SnacResponseListener
handleResponse
in interface SnacResponseListener
e
- an object describing the eventpublic void handleTimeout(SnacRequestTimeoutEvent event)
OutgoingSnacRequestListener
ClientSnacProcessor
. This will be called
only once for each request to which this listener has been added.
handleTimeout
in interface OutgoingSnacRequestListener
event
- an object describing the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |