|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jumpi.impl.EnvelopeImpl
An Envelope implementation.
Field Summary | |
protected java.util.Hashtable |
clientProps_
Read-only client customization properties. |
protected Destination |
dest_
The Destination to which message data is sent to or received from. |
protected java.util.Hashtable |
props_
Internal customization properties. |
protected Destination |
sender_
The sender of the message, if any. |
protected Stack |
stack_
The context stack used for storing message data and performing transformations. |
Constructor Summary | |
EnvelopeImpl()
Creates a new EnvelopeImpl object, typically used for testing purposes. |
|
EnvelopeImpl(Destination dest,
java.util.Hashtable clientProps)
Creates a new EnvelopeImpl object, typically used for receiving operations. |
|
EnvelopeImpl(java.lang.Object message,
Destination dest,
java.util.Hashtable clientProps)
Creates a new EnvelopeImpl object, typically used for sending operations. |
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()
Return the Destination to which messages are sent or received. |
java.util.Hashtable |
getProperties()
Return any internal properties. |
Destination |
getSender()
Return the sender of received messages. |
java.lang.Object |
popContext()
Return the topmost Object from the Envelope's context stack. |
void |
pushContext(java.lang.Object obj)
Push the 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 messages are sent or received. |
void |
setSender(Destination sender)
Set the sender of received messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Destination dest_
protected Destination sender_
protected java.util.Hashtable clientProps_
protected Stack stack_
protected java.util.Hashtable props_
Constructor Detail |
public EnvelopeImpl()
public EnvelopeImpl(java.lang.Object message, Destination dest, java.util.Hashtable clientProps)
message
- the message to place on top of the envelope's context
stack.dest
- the Destination to which message data is to be sent or
received from.clientProps
- the read-only client properties as used in
Jumpi.send() or Jumpi.recv().public EnvelopeImpl(Destination dest, java.util.Hashtable clientProps)
dest
- the Destination from which to receive a message.clientProps
- the read-only client properties as used in
Jumpi.send() or Jumpi.recv().Method Detail |
public Destination getDestination()
getDestination
in interface Envelope
setDestination(org.jumpi.spi.Destination)
public void setDestination(Destination dest)
setDestination
in interface Envelope
dest
- the Destination to which messages are sent or received.getDestination()
public Destination getSender()
getSender
in interface Envelope
setSender(org.jumpi.spi.Destination)
public void setSender(Destination sender)
setSender
in interface Envelope
sender
- the sender of received messages.getSender()
public void ensureProperties()
getProperties()
does not return null, if removeProperties()
is not called
afterwards.
ensureProperties
in interface Envelope
getProperties()
public void removeProperties()
getProperties()
returns
null unless ensureProperties()
is called afterwards.
removeProperties
in interface Envelope
getProperties()
public java.util.Hashtable getProperties()
Jumpi.send(org.jumpi.Destination, java.lang.Object, org.jumpi.Selector, java.util.Hashtable)
or Jumpi.recv(org.jumpi.Destination, org.jumpi.Selector, java.util.Hashtable)
. The properties used in internal properties are
implementation dependent.
getProperties
in interface Envelope
public java.util.Hashtable getClientProperties()
getClientProperties
in interface Envelope
setClientProperties(java.util.Hashtable)
public void setClientProperties(java.util.Hashtable clientProps)
setClientProperties
in interface Envelope
clientProps
- read-only client properties as used in Jumpi.send()
or Jumpi.recv().getClientProperties()
public java.lang.Object popContext()
popContext
in interface Envelope
Transformer
,
Envelope.pushContext(java.lang.Object)
public void pushContext(java.lang.Object obj)
pushContext
in interface Envelope
obj
- the Object to put onto the top of the Envelope's context
stack.
java.lang.IllegalArgumentException
- if obj is null.Transformer
,
Envelope.popContext()
|
Jumpi v1.2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |