|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.bam.packet.Packet
public class Packet
Base packet class. Contains only a 'to' and a 'from' field.
Constructor Summary | |
---|---|
Packet()
null constructor for Hessian deserialization |
|
Packet(java.lang.String to,
java.lang.String from)
Creates a packet with a destination and a source. |
Method Summary | |
---|---|
void |
dispatch(MessageStream handler,
MessageStream toSource)
SPI method to dispatch the packet to the proper handler |
void |
dispatchError(MessageStream handler,
MessageStream toSource,
BamError error)
SPI method to dispatch the packet to the proper handler |
java.lang.String |
getFrom()
Returns the 'from' field |
java.lang.String |
getTo()
Returns the 'to' field |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Packet()
public Packet(java.lang.String to, java.lang.String from)
to
- the destination addressfrom
- the source addressMethod Detail |
---|
public final java.lang.String getTo()
public final java.lang.String getFrom()
public void dispatch(MessageStream handler, MessageStream toSource)
public void dispatchError(MessageStream handler, MessageStream toSource, BamError error)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |