|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.types.UnknownDataContainer org.ws4d.java.message.Message
public abstract class Message
This class implements an abstract MessageObject.
Field Summary | |
---|---|
static int |
MULTICAST_ROUTING_SCHEME
|
static int |
UNICAST_ROUTING_SCHEME
|
static int |
UNKNOWN_ROUTING_SCHEME
|
Constructor Summary | |
---|---|
Message(SOAPHeader header)
Constructor. |
Method Summary | |
---|---|
AttributedURI |
getAction()
|
AppSequence |
getAppSequence()
|
java.lang.Object |
getCertificate()
This is the certificate against which the messages signature will be validated. * Only used within the security module. |
SOAPHeader |
getHeader()
|
AttributedURI |
getMessageId()
|
java.lang.Object |
getPrivateKey()
This is the private key with which this message will be signed. |
ProtocolInfo |
getProtocolInfo()
|
AttributedURI |
getRelatesTo()
|
EndpointReference |
getReplyTo()
|
int |
getRoutingScheme()
Gets the outgoing routing scheme for this message. |
URI |
getTargetAddress()
|
XAddressInfo |
getTargetXAddressInfo()
|
AttributedURI |
getTo()
|
abstract int |
getType()
Type of message. |
boolean |
isInbound()
Returns true if this message was received over a remote
communication channel. |
boolean |
isSecure()
Send using WS-Security techniques. |
void |
setCertificate(java.lang.Object certificate)
This is the certificate against which the messages signature will be validated. |
void |
setInbound(boolean inbound)
|
void |
setPrivateKey(java.lang.Object privKey)
This is the private key with which this message will be signed. |
void |
setProtocolInfo(ProtocolInfo Version)
|
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)
|
void |
setSecure(boolean b)
Sets wether or not the message should be sent secure. |
void |
setTargetXAddressInfo(XAddressInfo targetXAddressInfo)
|
java.lang.String |
toString()
|
Methods inherited from class org.ws4d.java.types.UnknownDataContainer |
---|
addUnknownAttribute, addUnknownElement, getUnknownAttribute, getUnknownAttributes, getUnknownElement, getUnknownElements, getUnknownElements, setUnknownAttributes, setUnknownElements |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_ROUTING_SCHEME
public static final int UNICAST_ROUTING_SCHEME
public static final int MULTICAST_ROUTING_SCHEME
Constructor Detail |
---|
public Message(SOAPHeader header)
header
- Method Detail |
---|
public java.lang.String toString()
toString
in class UnknownDataContainer
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 getAction()
public boolean isSecure()
public void setCertificate(java.lang.Object certificate)
certificate
- must be the java.security.cert.Certificate of the
sender device/servicepublic void setPrivateKey(java.lang.Object privKey)
privKey
- must be the java.security.PrivateKey of the sender device/
servicepublic java.lang.Object getCertificate()
public java.lang.Object getPrivateKey()
public void setSecure(boolean b)
public AttributedURI getMessageId()
public AttributedURI getRelatesTo()
public AttributedURI getTo()
public EndpointReference getReplyTo()
public AppSequence getAppSequence()
public URI getTargetAddress()
public XAddressInfo getTargetXAddressInfo()
public void setTargetXAddressInfo(XAddressInfo targetXAddressInfo)
targetXAddressInfo
- the targetAddress to setpublic 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 void setProtocolInfo(ProtocolInfo Version)
public ProtocolInfo getProtocolInfo()
public int getRoutingScheme()
public void setRoutingScheme(int routingScheme)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |