Package com.sun.xml.ws.tx.at.runtime
Class TransactionIdHelper
java.lang.Object
com.sun.xml.ws.tx.at.runtime.TransactionIdHelper
Helper class for converting between Xids and WS-AT transaction Ids.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionIdHelperReturns the TransactionIdHelper instance.abstract XidgetOrCreateXid(byte[] tid) Returns a foreign Xid that is mapped to the specified WS-AT transaction Id.abstract byte[]Returns the foreign WS-AT transaction Id that is mapped to the foreign Xid.abstract XidgetXid(byte[] tid) Returns the foreign Xid that is mapped to the specified WS-AT transaction Id.abstract Xidremove(byte[] tid) Removes the foreign WS-AT tid to Xid mappingabstract byte[]Removes the foreign WS-AT tid to Xid mappingabstract Xidwsatid2xid(String wsatid) Convert a WS-AT Id that was generated from a Xid back into a Xidabstract Stringxid2wsatid(Xid xid) Convert a Xid to WS-AT Id format.
-
Constructor Details
-
TransactionIdHelper
public TransactionIdHelper()
-
-
Method Details
-
getInstance
Returns the TransactionIdHelper instance.- Returns:
- the TransactionIdHelper instance.
-
xid2wsatid
Convert a Xid to WS-AT Id format.- Parameters:
xid- A Xid.- Returns:
- The transaction id in WS-AT format
-
wsatid2xid
Convert a WS-AT Id that was generated from a Xid back into a Xid- Parameters:
wsatid- A -based WS-AT tid- Returns:
- A Xid
-
getOrCreateXid
Returns a foreign Xid that is mapped to the specified WS-AT transaction Id.- Parameters:
tid- A foreign WS-AT tid in string representation.- Returns:
- A foreign Xid that is mapped ot the tid.
-
getXid
Returns the foreign Xid that is mapped to the specified WS-AT transaction Id.- Parameters:
tid- A foreign WS-AT tid.- Returns:
- The foreign Xid corresponding to the tid.
-
getTid
Returns the foreign WS-AT transaction Id that is mapped to the foreign Xid.- Parameters:
xid- A foreign Xid that was created from the foreign tid.- Returns:
- The foreign tid corresponding to the foreign Xid.
-
remove
Removes the foreign WS-AT tid to Xid mapping- Parameters:
tid- A foreign WS-AT transaction Id.- Returns:
- The mapped foreign Xid, or null if no mapping exists
-
remove
Removes the foreign WS-AT tid to Xid mapping- Parameters:
xid- A foreign Xid that is mapped to a foreign tid.- Returns:
- The mapped tid, or null if no mapping exists.
-