Class SessionStateSerializer
java.lang.Object
com.aquima.interactions.portal.model.session.state.SessionStateSerializer
This class contains methods to transform a session state to and from Xml.
- Since:
- 6.3
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISessionState
deserialize
(String sessionXml) This method may be used to initialize a session state object from a serialized Xml.static String
serialize
(SessionState sessionState) This method may be used to convert (serialize) a session state object to Xml.
-
Method Details
-
serialize
This method may be used to convert (serialize) a session state object to Xml.- Parameters:
sessionState
- The session state object that should be serialized.- Returns:
- Xml containing the information of the session state object.
- Throws:
IOException
- This exception is thrown when the session could not be serialized.
-
deserialize
public static ISessionState deserialize(String sessionXml) throws IOException, ClassNotFoundException This method may be used to initialize a session state object from a serialized Xml.- Parameters:
sessionXml
- The Xml containing the information needed to initialize a session state object.- Returns:
- Session state object based on the serialized Xml.
- Throws:
IOException
- This exception is thrown when the session state could not be created based on the Xml.ClassNotFoundException
- This exception is thrown when the Xml contains a reference to an object that is no longer available.
-