org.objectweb.jotm.btp.messages
Class BtpMessage
java.lang.Object
|
+--org.objectweb.jotm.btp.messages.BtpMessage
- Direct Known Subclasses:
- ApplicationMessage, Begin, Begun, Cancel, CancelInferiors, Cancelled, CancelTransaction, ClientMessage, Confirm, Confirmed, ConfirmOnePhase, ConfirmTransaction, Context, ContextReply, Contradiction, Enrol, Enrolled, Fault, Hazard, InferiorState, InferiorStatuses, JotmAdmin, Prepare, Prepared, PrepareInferiors, Redirect, RelatedGroup, RequestInferiorStatuses, RequestStatus, Resign, Resigned, Status, StatusItem, SuperiorState, TransactionCancelled, TransactionConfirmed
- public class BtpMessage
- extends Object
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
BEGIN
public static final int BEGIN
- See Also:
- Constant Field Values
BEGUN
public static final int BEGUN
- See Also:
- Constant Field Values
CANCEL_INFERIORS
public static final int CANCEL_INFERIORS
- See Also:
- Constant Field Values
CANCEL
public static final int CANCEL
- See Also:
- Constant Field Values
CANCELLED
public static final int CANCELLED
- See Also:
- Constant Field Values
CANCEL_TRANSACTION
public static final int CANCEL_TRANSACTION
- See Also:
- Constant Field Values
CONFIRMED
public static final int CONFIRMED
- See Also:
- Constant Field Values
CONFIRM
public static final int CONFIRM
- See Also:
- Constant Field Values
CONFIRM_ONE_PHASE
public static final int CONFIRM_ONE_PHASE
- See Also:
- Constant Field Values
CONFIRM_TRANSACTION
public static final int CONFIRM_TRANSACTION
- See Also:
- Constant Field Values
CONTEXT
public static final int CONTEXT
- See Also:
- Constant Field Values
CONTEXT_REPLY
public static final int CONTEXT_REPLY
- See Also:
- Constant Field Values
CONTRADICTION
public static final int CONTRADICTION
- See Also:
- Constant Field Values
ENROL
public static final int ENROL
- See Also:
- Constant Field Values
ENROLLED
public static final int ENROLLED
- See Also:
- Constant Field Values
FAULT
public static final int FAULT
- See Also:
- Constant Field Values
HAZARD
public static final int HAZARD
- See Also:
- Constant Field Values
INFERIOR_STATE
public static final int INFERIOR_STATE
- See Also:
- Constant Field Values
INFERIOR_STATUSES
public static final int INFERIOR_STATUSES
- See Also:
- Constant Field Values
PREPARED
public static final int PREPARED
- See Also:
- Constant Field Values
PREPARE_INFERIORS
public static final int PREPARE_INFERIORS
- See Also:
- Constant Field Values
PREPARE
public static final int PREPARE
- See Also:
- Constant Field Values
REDIRECT
public static final int REDIRECT
- See Also:
- Constant Field Values
REQUEST_INFERIOR_STATUSES
public static final int REQUEST_INFERIOR_STATUSES
- See Also:
- Constant Field Values
REQUEST_STATUS
public static final int REQUEST_STATUS
- See Also:
- Constant Field Values
RESIGNED
public static final int RESIGNED
- See Also:
- Constant Field Values
RESIGN
public static final int RESIGN
- See Also:
- Constant Field Values
STATUS
public static final int STATUS
- See Also:
- Constant Field Values
SUPERIOR_STATE
public static final int SUPERIOR_STATE
- See Also:
- Constant Field Values
TRANSACTION_CANCELLED
public static final int TRANSACTION_CANCELLED
- See Also:
- Constant Field Values
TRANSACTION_CONFIRMED
public static final int TRANSACTION_CONFIRMED
- See Also:
- Constant Field Values
RELATED_GROUP
public static final int RELATED_GROUP
- See Also:
- Constant Field Values
JOTM_ADMIN
public static final int JOTM_ADMIN
- See Also:
- Constant Field Values
EMPTY
public static final String EMPTY
- See Also:
- Constant Field Values
BtpMessage
public BtpMessage(String name,
int type)
BtpMessage
public BtpMessage(XElement el,
int type)
getName
public String getName()
getType
public int getType()
getSingle
public Object getSingle(String path,
boolean local)
getSingle
public Object getSingle(String path,
int pos,
boolean local)
get
public Vector get(String path,
boolean local)
pickString
protected String pickString(XHashtable h,
String path)
pickAddrSet
protected Vector pickAddrSet(XHashtable h,
String path)
setId
public void setId(String i)
getId
public String getId()
addReplyAddress
public void addReplyAddress(Address add)
getReplyAddresses
public Vector getReplyAddresses()
getReplyAddress
public Address getReplyAddress(int pos)
addSenderAddress
public void addSenderAddress(Address add)
getSenderAddresses
public Vector getSenderAddresses()
getSenderAddress
public Address getSenderAddress(int pos)
addQualifier
public void addQualifier(Qualifier q)
getQualifiers
public Vector getQualifiers()
getQualifier
public Qualifier getQualifier(int pos)
getQualifier
public Qualifier getQualifier(String localname)
setTargetAddress
public void setTargetAddress(String i)
- setTargetAddress() and getTargetAddress()
Address the "target-additional-information" XML element
Its value is the URL of the target WS (WS name included)
getTargetAddress
public String getTargetAddress()
setTransactionTimelimit
public void setTransactionTimelimit(int seconds)
getTransactionTimelimit
public int getTransactionTimelimit()
setInferiorTimeout
public void setInferiorTimeout(int seconds,
int decision)
getInferiorTimeout
public int getInferiorTimeout()
getInferiorTimeoutDecision
public String getInferiorTimeoutDecision()
setMinimumInferiorTimeout
public void setMinimumInferiorTimeout(int seconds,
int decision)
getMinimumInferiorTimeout
public int getMinimumInferiorTimeout()
setInferiorName
public void setInferiorName(String name)
getInferiorName
public String getInferiorName()
toString
public String toString()
- Overrides:
toString
in class Object
addQualifiers
protected void addQualifiers(XElement el)
addTargetAddress
protected void addTargetAddress(XElement el)
addReplyAddress
protected void addReplyAddress(XElement el)
addSenderAddress
protected void addSenderAddress(XElement el)
toXml
public XElement toXml()
toHtml
public String toHtml()
toHtml
public static String toHtml(String xml)