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


Field Summary
static int BEGIN
           
static int BEGUN
           
static int CANCEL
           
static int CANCEL_INFERIORS
           
static int CANCEL_TRANSACTION
           
static int CANCELLED
           
static int CONFIRM
           
static int CONFIRM_ONE_PHASE
           
static int CONFIRM_TRANSACTION
           
static int CONFIRMED
           
static int CONTEXT
           
static int CONTEXT_REPLY
           
static int CONTRADICTION
           
static String EMPTY
           
static int ENROL
           
static int ENROLLED
           
static int FAULT
           
static int HAZARD
           
static int INFERIOR_STATE
           
static int INFERIOR_STATUSES
           
static int JOTM_ADMIN
           
static int PREPARE
           
static int PREPARE_INFERIORS
           
static int PREPARED
           
static int REDIRECT
           
static int RELATED_GROUP
           
static int REQUEST_INFERIOR_STATUSES
           
static int REQUEST_STATUS
           
static int RESIGN
           
static int RESIGNED
           
static int STATUS
           
static int SUPERIOR_STATE
           
static int TRANSACTION_CANCELLED
           
static int TRANSACTION_CONFIRMED
           
static int UNKNOWN
           
 
Constructor Summary
BtpMessage(String name, int type)
           
BtpMessage(XElement el, int type)
           
 
Method Summary
 void addQualifier(Qualifier q)
           
protected  void addQualifiers(XElement el)
           
 void addReplyAddress(Address add)
           
protected  void addReplyAddress(XElement el)
           
 void addSenderAddress(Address add)
           
protected  void addSenderAddress(XElement el)
           
protected  void addTargetAddress(XElement el)
           
 Vector get(String path, boolean local)
           
 String getId()
           
 String getInferiorName()
           
 int getInferiorTimeout()
           
 String getInferiorTimeoutDecision()
           
 int getMinimumInferiorTimeout()
           
 String getName()
           
 Qualifier getQualifier(int pos)
           
 Qualifier getQualifier(String localname)
           
 Vector getQualifiers()
           
 Address getReplyAddress(int pos)
           
 Vector getReplyAddresses()
           
 Address getSenderAddress(int pos)
           
 Vector getSenderAddresses()
           
 Object getSingle(String path, boolean local)
           
 Object getSingle(String path, int pos, boolean local)
           
 String getTargetAddress()
           
 int getTransactionTimelimit()
           
 int getType()
           
protected  Vector pickAddrSet(XHashtable h, String path)
           
protected  String pickString(XHashtable h, String path)
           
 void setId(String i)
           
 void setInferiorName(String name)
           
 void setInferiorTimeout(int seconds, int decision)
           
 void setMinimumInferiorTimeout(int seconds, int decision)
           
 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)
 void setTransactionTimelimit(int seconds)
           
 String toHtml()
           
static String toHtml(String xml)
           
 String toString()
           
 XElement toXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

BtpMessage

public BtpMessage(String name,
                  int type)

BtpMessage

public BtpMessage(XElement el,
                  int type)
Method Detail

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)