|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.ClientMessage
public class ClientMessage
Wrap a message either destined for a local client or received from one. Note that an outbound message may get routed as an inbound message for local-local communication.
Constructor Summary | |
---|---|
ClientMessage(Destination toDest,
Payload payload,
SessionConfig config,
Destination fromDest,
MessageId msgID,
long messageNonce,
long expiration,
int flags)
For outbound (locally originated) |
|
ClientMessage(Hash toDestHash,
Payload payload)
For inbound (from remote dest) |
Method Summary | |
---|---|
Destination |
getDestination()
Retrieve the destination to which this message is directed. |
Hash |
getDestinationHash()
Retrieve the destination to which this message is directed. |
long |
getExpiration()
Expiration requested by the client that sent the message. |
int |
getFlags()
Flags requested by the client that sent the message. |
Destination |
getFromDestination()
Valid for outbound; null for inbound. |
MessageId |
getMessageId()
Valid for outbound; null for inbound. |
long |
getMessageNonce()
Valid for outbound; 0 for inbound. |
Payload |
getPayload()
Retrieve the payload of the message. |
SessionConfig |
getSenderConfig()
Retrieve the session config of the client that sent the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientMessage(Destination toDest, Payload payload, SessionConfig config, Destination fromDest, MessageId msgID, long messageNonce, long expiration, int flags)
msgID
- the router's ID for this messagemessageNonce
- the client's ID for this messagepublic ClientMessage(Hash toDestHash, Payload payload)
Method Detail |
---|
public Payload getPayload()
public Destination getDestination()
public Destination getFromDestination()
public Hash getDestinationHash()
public MessageId getMessageId()
public long getMessageNonce()
public SessionConfig getSenderConfig()
public long getExpiration()
public int getFlags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |