|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for JEDI packet handlers. It defines a handling function to process a packet.
InputPacket
,
MailDaemon
Method Summary | |
boolean |
handleError(java.lang.Exception e,
OutputPacket packet)
This method handles any error that might have occurred in sending an OutputPacket with this as one handler. |
boolean |
handlePacket(InputPacket packet)
This method accepts an incoming packet and processes it. |
void |
initializePacket(OutputPacket packet)
This method initializes an OutputPacket that will eventually be sent through this Handler. |
boolean |
sendPacket(OutputPacket packet)
This method performs any work necessary to complete this packet before it is sent. |
Method Detail |
public boolean handlePacket(InputPacket packet) throws java.io.IOException
packet
- the packet to processpublic boolean handleError(java.lang.Exception e, OutputPacket packet)
e
- the exception condition being handledpacket
- the packet that was being sent when the
error occurredpublic void initializePacket(OutputPacket packet) throws java.io.IOException
packet
- the OutputPacket to be initialized.public boolean sendPacket(OutputPacket packet) throws java.io.IOException
packet
- the OutputPacket to be updated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |