Class JingleSessionStateUnknown
java.lang.Object
org.jivesoftware.smackx.jingleold.JingleSessionState
org.jivesoftware.smackx.jingleold.JingleSessionStateUnknown
Jingle.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenter()Called when entering the state.voidexit()Called when exiting the state.static JingleSessionStateA thread-safe means of getting the one instance of this class.processJingle(JingleSession session, Jingle jingle, JingleActionEnum action) Process an incoming Jingle Packet.Methods inherited from class org.jivesoftware.smackx.jingleold.JingleSessionState
toString
-
Constructor Details
-
JingleSessionStateUnknown
protected JingleSessionStateUnknown()
-
-
Method Details
-
getInstance
A thread-safe means of getting the one instance of this class.- Returns:
- The singleton instance of this class.
-
enter
Description copied from class:JingleSessionStateCalled when entering the state.- Specified by:
enterin classJingleSessionState
-
exit
Description copied from class:JingleSessionStateCalled when exiting the state.- Specified by:
exitin classJingleSessionState
-
processJingle
public IQ processJingle(JingleSession session, Jingle jingle, JingleActionEnum action) throws SmackException, InterruptedException Description copied from class:JingleSessionStateProcess an incoming Jingle Packet. When you look at the GoF State pattern this method roughly corresponds to example on p310: ProcessOctet()- Specified by:
processJinglein classJingleSessionState- Parameters:
session- the jingle session.jingle- the jingle stanza.action- the jingle action.- Returns:
- the resulting IQ.
- Throws:
SmackException- if Smack detected an exceptional situation.InterruptedException- if the calling thread was interrupted.
-