public abstract class Message extends UnknownDataContainer
| Modifier and Type | Field and Description |
|---|---|
protected SOAPHeader |
header |
protected boolean |
inbound
If
true, then this is a message received over a remote communication channel; if
false, the message is being sent from this stack instance. |
static int |
MULTICAST_ROUTING_SCHEME |
static int |
UNICAST_ROUTING_SCHEME |
static int |
UNKNOWN_ROUTING_SCHEME |
unknownAttributes, unknownElements_QN_2_List| Constructor and Description |
|---|
Message(SOAPHeader header)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AppSequence |
getAppSequence() |
SOAPHeader |
getHeader()
Returns the SOAP header of the message.
|
AttributedURI |
getMessageId()
Returns the message id.
|
AttributedURI |
getRelatesTo() |
EndpointReference |
getReplyTo() |
int |
getRoutingScheme()
Gets the outgoing routing scheme for this message.
|
AttributedURI |
getTo() |
abstract int |
getType()
Type of message.
|
boolean |
isInbound()
Returns
true if this message was received over a remote communication channel. |
void |
setInbound(boolean inbound) |
void |
setResponseTo(Message request)
Sets the
[relationship], [to] and [parameters]
properties of this message to the values of the [message ID] and [reply to] properties of the passed in message. |
void |
setResponseTo(SOAPHeader requestHeader)
Sets the
[relationship], [to] and [parameters]
properties of this message to the values of the [message ID]
and [reply to] properties of the passed in SOAP header. |
void |
setRoutingScheme(int routingScheme) |
protected void |
setSOAPHeader(SOAPHeader header) |
java.lang.String |
toString()
(non-Javadoc)
|
addUnknownAttribute, addUnknownElement, getUnknownAttribute, getUnknownAttributes, getUnknownElement, getUnknownElements, getUnknownElements, setUnknownAttributes, setUnknownElementspublic static final int UNKNOWN_ROUTING_SCHEME
public static final int UNICAST_ROUTING_SCHEME
public static final int MULTICAST_ROUTING_SCHEME
protected SOAPHeader header
protected boolean inbound
true, then this is a message received over a remote communication channel; if
false, the message is being sent from this stack instance.public Message(SOAPHeader header)
header - public java.lang.String toString()
toString in class UnknownDataContainerObject.toString()public void setResponseTo(Message request)
[relationship], [to] and [parameters]
properties of this message to the values of the [message ID] and [reply to] properties of the passed in message.request - the message from which to extract the source propertiespublic void setResponseTo(SOAPHeader requestHeader)
[relationship], [to] and [parameters]
properties of this message to the values of the [message ID]
and [reply to] properties of the passed in SOAP header.requestHeader - the SOAP header from which to extract the source propertiespublic abstract int getType()
public SOAPHeader getHeader()
public AttributedURI getMessageId()
public AttributedURI getRelatesTo()
public AttributedURI getTo()
public EndpointReference getReplyTo()
public AppSequence getAppSequence()
public boolean isInbound()
true if this message was received over a remote communication channel.
Returns false if the message is being sent from this stack instance.public void setInbound(boolean inbound)
inbound - the inbound to setpublic int getRoutingScheme()
public void setRoutingScheme(int routingScheme)
protected void setSOAPHeader(SOAPHeader header)