|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.msgrouting.BrokerAcknowledgementMessage
public class BrokerAcknowledgementMessage
A BrokerAcknowledgementMessage is returned to a service requestor by a transport handler when the requestor expects a reply, but message processing does not produce a result.
See the org.osesb.transporthandlers package in the transport-handlers module. A standard broker acknowledgement message XML looks like:<ack:brokerAcknowledgement xmlns:ack="http://www.osesb.org/brokerAcknowledgement">
<dateTime>22 Feb 2007 05:41:41</dateTime>
<relatesToMessageType namespaceURI="www.osesb.org" localPart="testMessage" />
<relatesToMessageID>1234</relatesToMessageID>
<acknowledgementMessage>This is a test message.</acknowledgementMessage>
</ack:brokerAcknowledgement>
This class encapsulates the properties that compose a
BrokerAcknowledgementMessage and includes the following operative
methods:
| Field Summary | |
|---|---|
protected java.lang.String |
acknowledgementMessage
AcknowledgementMessage text. |
protected java.util.Date |
acknowledgementMessageCreateDateTime
A Date object for the date-time the AcknowledgementMessage was created. |
protected java.lang.String |
acknowledgementTimestampFormat
The format for the timestamp element in the XML acknowledgement message generated by toXML(). |
static java.lang.String |
BROKER_ACKNOWLEDGEMENTMESSAGE_NAMESPACEPREFIX
The namespace prefix for the XML acknowledgement message generated by Acknowledgement#toXML(). |
static java.lang.String |
BROKER_ACKNOWLEDGEMENTMESSAGE_NAMESPACEURI
The namespaceURI for the XML acknowledgement message generated by Acknowledgement#toXML(). |
static java.lang.String |
BROKER_ACKNOWLEDGEMENTMESSAGE_ROOTTAGNAME
The tagName for the root Element of the XML generated by Acknowledgement#toXML(). |
protected java.lang.String |
relatesToMessageID
This is the message ID of the message that was sent to osESB and that this BrokerAcknowledgementMessage acknowledges. |
protected javax.xml.namespace.QName |
relatesToMessageType
The message type of the of the message that was sent to osESB and that this BrokerAcknowledgementMessage acknowledges. |
protected static java.util.Map |
standardPropertyNames
fromXML() must distinguish between standard BrokerAcknowledgementMessage properties and extended properties. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
BrokerAcknowledgementMessage()
Construct instance of BrokerAcknowledgementMessage. |
|
BrokerAcknowledgementMessage(java.lang.String acknowledgementMessage)
Construct instance of BrokerAcknowledgementMessage. |
|
| Method Summary | |
|---|---|
static BrokerAcknowledgementMessage |
fromXML(java.lang.String brokerAcknowledgementXML)
Creates a new BrokerAcknowledgementMessage object from the given broker acknowledgement XML, which looks like: |
java.lang.String |
getAcknowledgementMessage()
Get AcknowledgementMessage text. |
java.lang.String |
getAcknowledgementTimestampFormat()
Get the timestamp format for the XML acknowledgement message generated by toXML(). |
java.util.Properties |
getExtendedProperties()
Return the extended Properties for this BrokerAcknowledgementMessage. |
java.lang.String |
getExtendedProperty(java.lang.String propertyName)
Return an extended Property by name. |
java.lang.String |
getRelatesToMessageID()
Get the message ID of the originating message that was sent to osESB that this BrokerAcknowledgementMessage acknowledges. |
javax.xml.namespace.QName |
getRelatesToMessageType()
Get the message type of the originating message that was sent to osESB that this BrokerAcknowledgementMessage acknowledges. |
static boolean |
isBrokerAcknowledgementMessage(java.lang.String xmlText)
Returns true if the given XML is broker acknowledgement message XML. |
static void |
main(java.lang.String[] args)
main(): For testing and sandboxing. |
void |
setAcknowledgementMessage(java.lang.String acknowledgementMessage)
Set AcknowledgementMessage text. |
void |
setAcknowledgementTimestampFormat(java.lang.String acknowledgementTimestampFormat)
Set the timestamp format for the XML acknowledgement message generated by toXML(). |
void |
setExtendedProperties(java.util.Properties extendedProperties)
Set the extended Properties for this BrokerAcknowledgementMessage. |
void |
setExtendedProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Set an extended Property by name. |
void |
setRelatesToMessageID(java.lang.String relatesToMessageID)
Set the message ID of the originating message that was sent to osESB that this BrokerAcknowledgementMessage acknowledges. |
void |
setRelatesToMessageType(javax.xml.namespace.QName relatesToMessageType)
Set the message type of the originating message that was sent to osESB that this BrokerAcknowledgementMessage acknowledges. |
java.lang.String |
toXML()
Generates a broker XML acknowledgement message from this BrokerAcknowledgementMessage that looks like: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String thisClassName
protected java.lang.String acknowledgementMessage
protected javax.xml.namespace.QName relatesToMessageType
protected java.lang.String relatesToMessageID
<wsa:MessageID> entry
in the SOAPHeader of the SOAPMessage that was received
by osESB.
protected java.util.Date acknowledgementMessageCreateDateTime
protected java.lang.String acknowledgementTimestampFormat
protected static java.util.Map standardPropertyNames
public static java.lang.String BROKER_ACKNOWLEDGEMENTMESSAGE_ROOTTAGNAME
public static java.lang.String BROKER_ACKNOWLEDGEMENTMESSAGE_NAMESPACEURI
public static java.lang.String BROKER_ACKNOWLEDGEMENTMESSAGE_NAMESPACEPREFIX
| Constructor Detail |
|---|
public BrokerAcknowledgementMessage()
public BrokerAcknowledgementMessage(java.lang.String acknowledgementMessage)
| Method Detail |
|---|
public java.lang.String toXML()
throws java.lang.Exception
<ack:brokerAcknowledgement xmlns:ack="http://www.osesb.org/brokerAcknowledgement">
<dateTime>22 Feb 2007 05:41:41</dateTime>
<relatesToMessageType namespaceURI="www.osesb.org" localPart="testMessage" />
<relatesToMessageID>1234</relatesToMessageID>
<acknowledgementMessage>This is a test message.</acknowledgementMessage>
</ack:brokerAcknowledgement>
java.lang.Exception - if There is a problem constructing a
osesb acknowledgement XML Message.
public static BrokerAcknowledgementMessage fromXML(java.lang.String brokerAcknowledgementXML)
throws java.lang.Exception
<ack:brokerAcknowledgement xmlns:ack="http://www.osesb.org/brokerAcknowledgement">
<dateTime>22 Feb 2007 05:41:41</dateTime>
<relatesToMessageType namespaceURI="www.osesb.org" localPart="testMessage" />
<relatesToMessageID>1234</relatesToMessageID>
<acknowledgementMessage>This is a test message.</acknowledgementMessage>
</ack:brokerAcknowledgement>
java.lang.Exception - if There is a problem constructing a BrokerAcknowledgementMessage object
from a broker acknowledgement XML Message.
public static boolean isBrokerAcknowledgementMessage(java.lang.String xmlText)
throws java.lang.Exception
xmlText - The XML to test.
java.lang.Exception - if xmlText cannot be parsed.public java.lang.String getAcknowledgementMessage()
public void setAcknowledgementMessage(java.lang.String acknowledgementMessage)
public javax.xml.namespace.QName getRelatesToMessageType()
public void setRelatesToMessageType(javax.xml.namespace.QName relatesToMessageType)
relatesToMessageType - The message type of the originating
message that was sent to osESB.public java.lang.String getRelatesToMessageID()
<wsa:MessageID> entry
in the SOAPHeader of the SOAPMessage that was received
by osESB.
public void setRelatesToMessageID(java.lang.String relatesToMessageID)
<wsa:MessageID> entry
in the SOAPHeader of the SOAPMessage that was received
by osESB.
relatesToMessageID - The message ID of the originating
message that was sent to osESB.public void setAcknowledgementTimestampFormat(java.lang.String acknowledgementTimestampFormat)
public java.lang.String getAcknowledgementTimestampFormat()
public java.util.Properties getExtendedProperties()
public void setExtendedProperties(java.util.Properties extendedProperties)
extendedProperties - The extended Properties for this BrokerAcknowledgementMessage.public java.lang.String getExtendedProperty(java.lang.String propertyName)
public void setExtendedProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - The Property name.propertyValue - The Property value.public static void main(java.lang.String[] args)
args - commandline arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||