com.americancoders.ebXML
Class ReliableMessagingInfo

java.lang.Object
  |
  +--com.americancoders.ebXML.ReliableMessagingInfo

class ReliableMessagingInfo
extends java.lang.Object

The last element of the ebXMLHeader is the ReliableMessagingInfo element. This element identifies the degree of reliability with which the message will be delivered. This element has a single attribute, DeliverySemantics. This attribute is an enumeration, which may have one of the following values:
"OnceAndOnlyOnce" reliable messaging semantics: the receiving Service Interface handler will receive a given message no more than once, the sending Messaging Service will execute retry procedures in the event of failure and the sending Service Interface handler will be notified in the event of failure.
"BestEffort" reliable delivery semantics are not specified: the Sending Service Interface handler is not notified of failure to deliver the message, duplicate messages might be delivered and persistent storages are not required.


Field Summary
private  java.lang.String deliverySemantics
           
 
Constructor Summary
(package private) ReliableMessagingInfo()
           
 
Method Summary
 java.lang.String getDeliverySemantics()
          method to get DeliverySemantics
 java.lang.String getXML(int depth)
          method to build an XML string of this and its subordinate objects
 boolean isBestEffort()
          returns true if DeliverySemantics set to BestEffort
 boolean isOnceAndOnlyOnce()
          return true if DeliverySemantics set to OnceAndOnlyOnce
 void setDeliverySemantics(java.lang.String inDeliverySemantics)
          method to set DeliverySemantics
 void setDeliverySemanticsToBestEffort()
          method to set DeliverySemantics to BestEffort
 void setDeliverySemanticsToOnceAndOnlyOnce()
          method to set DeliverySemantics to OnceAndOnlyOnce
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

deliverySemantics

private java.lang.String deliverySemantics
Constructor Detail

ReliableMessagingInfo

ReliableMessagingInfo()
Method Detail

setDeliverySemantics

public void setDeliverySemantics(java.lang.String inDeliverySemantics)
method to set DeliverySemantics
Parameters:
String - inDeliverySemantics

setDeliverySemanticsToOnceAndOnlyOnce

public void setDeliverySemanticsToOnceAndOnlyOnce()
method to set DeliverySemantics to OnceAndOnlyOnce

setDeliverySemanticsToBestEffort

public void setDeliverySemanticsToBestEffort()
method to set DeliverySemantics to BestEffort

getDeliverySemantics

public java.lang.String getDeliverySemantics()
method to get DeliverySemantics
Returns:
String

isOnceAndOnlyOnce

public boolean isOnceAndOnlyOnce()
return true if DeliverySemantics set to OnceAndOnlyOnce

isBestEffort

public boolean isBestEffort()
returns true if DeliverySemantics set to BestEffort

getXML

public java.lang.String getXML(int depth)
method to build an XML string of this and its subordinate objects
Parameters:
int - depth - how many multiple of 4 spaces to add in front of text
Returns:
String - XML text