|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--info.jedi.net.HandlerStack
Stors a stack of PacketHandlers and provides methods for accessing the PacketHandlers and sending messages/reporting errors.
Constructor Summary | |
HandlerStack()
Creates an empty HandlerStack |
Method Summary | |
void |
add(PacketHandler nextHandler)
Adds a PacketHandler to the top of this HandlerStack |
void |
initializePacket(OutputPacket packet)
Initializes a packet to be sent. |
HandlerStackIterator |
iterator()
Gets an iterator for this HandlerStack. |
void |
reportError(java.lang.Exception e,
OutputPacket packet,
HandlerStackIterator firstToReceive)
Reports an error (given in the passed Exception). |
void |
sendPacket(OutputPacket packet)
Sends a packet through this HandlerStack. |
void |
sendPacket(OutputPacket packet,
HandlerStackIterator firstToSend)
Sends a packet through this HandlerStack, starting with the location in the stack indicated by firstToSend. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HandlerStack()
Method Detail |
public void add(PacketHandler nextHandler)
public HandlerStackIterator iterator()
public void sendPacket(OutputPacket packet) throws java.io.IOException
public void sendPacket(OutputPacket packet, HandlerStackIterator firstToSend) throws java.io.IOException
public void reportError(java.lang.Exception e, OutputPacket packet, HandlerStackIterator firstToReceive)
public void initializePacket(OutputPacket packet) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |