|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An Envelope carries all information relating to send and receive operations between Controllers and Connectors. Envelopes are instantiated by Controllers for conveying both message data, addressing information and customizing information between Controller and Connector. A single Envelope is used per send or receive operation at the Connector layer.
Connector.recv(org.jumpi.spi.Envelope)
,
Controller.callbackRecv(org.jumpi.spi.Envelope, boolean, java.lang.String)
,
Connector.send(org.jumpi.spi.Envelope)
,
Controller.callbackSend(org.jumpi.spi.Envelope, boolean, java.lang.String)
Method Summary | |
void |
ensureProperties()
Ensure that internal properties exist such that getProperties does not return null, if removeProperties is not called afterwards. |
java.util.Hashtable |
getClientProperties()
Returns the read-only client properties as used in Jumpi.send() or Jumpi.recv(). |
Destination |
getDestination()
Get the Destination to which message data is sent, or message data is received from. |
java.util.Hashtable |
getProperties()
Return any internal properties. |
Destination |
getSender()
Get the Destination of the sender of the message data. |
java.lang.Object |
popContext()
Pop the topmost Object off the Envelope's context stack. |
void |
pushContext(java.lang.Object ctx)
Push an Object onto the top of the Envelope's context stack. |
void |
removeProperties()
Remove any internal properties, such that getProperties returns null unless ensureProperties is called afterwards. |
void |
setClientProperties(java.util.Hashtable clientProps)
Sets the read-only client properties as used in Jumpi.send() or Jumpi.recv(). |
void |
setDestination(Destination dest)
Set the Destination to which message data is sent, or message data is received from. |
void |
setSender(Destination sender)
Set the Destination of the sender of the message data. |
Method Detail |
public Destination getDestination()
setDestination(org.jumpi.spi.Destination)
public void setDestination(Destination dest)
dest
- the Destination to which message data is to be sent or
received from.getDestination()
,
Connector.send(org.jumpi.spi.Envelope)
,
Connector.recv(org.jumpi.spi.Envelope)
public Destination getSender()
setSender(org.jumpi.spi.Destination)
,
Controller.callbackRecv(org.jumpi.spi.Envelope, boolean, java.lang.String)
public void setSender(Destination sender)
sender
- the Destination of the sender of the message data.getSender()
public void ensureProperties()
getProperties()
,
removeProperties()
public void removeProperties()
getProperties()
,
ensureProperties()
public java.util.Hashtable getProperties()
public java.util.Hashtable getClientProperties()
setClientProperties(java.util.Hashtable)
,
Jumpi.send(org.jumpi.Destination, java.lang.Object, org.jumpi.Selector, java.util.Hashtable)
,
Jumpi.recv(org.jumpi.Destination, org.jumpi.Selector, java.util.Hashtable)
public void setClientProperties(java.util.Hashtable clientProps)
clientProps
- read-only client properties as used in Jumpi.send()
or Jumpi.recv().getClientProperties()
,
Jumpi.send(org.jumpi.Destination, java.lang.Object, org.jumpi.Selector, java.util.Hashtable)
,
Jumpi.recv(org.jumpi.Destination, org.jumpi.Selector, java.util.Hashtable)
public java.lang.Object popContext()
Pop the topmost Object off the Envelope's context stack. Message data and any other data required for transformation of a message for transmission can be placed on the context stack with pushContext and removed with popContext.
A Transformer accesses the Envelope's context stack in order to get data for message transformation. It is the responsibility of the Controller to put data in the context stack on send. It is the responsibility of the Connector to place data on the context stack on receive.
Transformer
,
pushContext(java.lang.Object)
public void pushContext(java.lang.Object ctx)
Push an Object onto the top of the Envelope's context stack. Message data and any other data required for transformation of a message for transmission can be placed on the context stack with pushContext and removed with popContext.
A Transformer accesses the Envelope's context stack in order to get data for transformation. It is the responsibility of the Controller to put data in the context stack on send. It is the responsibility of the Connector to place data on the context stack on receive.
ctx
- the object to put onto the stack.Transformer
,
popContext()
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |