|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.hmtp.Packet
public class Packet
Base packet class. Contains only a 'to' and a 'from' field.
| Constructor Summary | |
|---|---|
protected |
Packet()
null constructor for Hessian deserialization |
|
Packet(java.lang.String to)
Creates a packet with a destination, but no source, e.g. |
|
Packet(java.lang.String to,
java.lang.String from)
Creates a packet with a destination and a source. |
| Method Summary | |
|---|---|
void |
dispatch(BamStream handler,
BamStream toSource)
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 |
|---|
protected Packet()
public Packet(java.lang.String to)
to - the destination jid
public Packet(java.lang.String to,
java.lang.String from)
to - the destination jidfrom - the source jid| Method Detail |
|---|
public java.lang.String getTo()
public java.lang.String getFrom()
public void dispatch(BamStream handler,
BamStream toSource)
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 | |||||||||