|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MobyRequestEventHandler
This interface is used for callbacks when MobyRequest is acting as a server or client. Similar to how a MouseListener will get mousePressed() callbacks for GUI components it is registered with (via component.addMouseListener()), processEvent() will be called in the implementing class when MOBYRequest receives a connection from a client [server mode], or receives a response from a server [client mode]. This of course requires that you've registered the listener using MobyRequest.addEventHandler().
Method Summary | |
---|---|
void |
processEvent(MobyRequestEvent mre)
|
void |
start(MobyRequestEvent request)
If a client, denotes that a service request has been sent (and the contents is exactly what is being sent to the service). |
void |
stop(MobyRequest request,
int requestID)
If a client, denotes the end of a service request. |
Method Detail |
---|
void start(MobyRequestEvent request)
void processEvent(MobyRequestEvent mre)
void stop(MobyRequest request, int requestID)
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |