Package com.softwareag.entirex.aci
Class ConversationState
- java.lang.Object
-
- com.softwareag.entirex.aci.ConversationState
-
- All Implemented Interfaces:
java.io.Serializable
public final class ConversationState extends java.lang.Object implements java.io.Serializable
Class used to save the state of conversations. Can be used for both Conversation and UnitofWork objects.
Objects of this class can be serialized and deserialized using standard Java serialization.
Objects can also be re-instantiated using a ticket string. The ticket is obtained with the getTicket() method. The object can be instantiated using the ticket with the restoreFromTicket() method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTicket()
Returns the ticket of this ConversationState object.static ConversationState
restoreFromTicket(java.lang.String ticket)
Create a ConversationState object from the specifed ticket.java.lang.String
toString()
Return the ticket of this ConversationState object.
-
-
-
Method Detail
-
restoreFromTicket
public static ConversationState restoreFromTicket(java.lang.String ticket) throws java.lang.IllegalArgumentException
Create a ConversationState object from the specifed ticket. The ticket has to be obtained by a call to getTicket().- Parameters:
ticket
- the ticket- Returns:
- the ConversationState object to the given ticket.
- Throws:
java.lang.IllegalArgumentException
- if ticket is not valid.- See Also:
getTicket()
-
toString
public java.lang.String toString()
Return the ticket of this ConversationState object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the ticket
-
getTicket
public java.lang.String getTicket()
Returns the ticket of this ConversationState object.- Returns:
- the ticket
-
-