Class JingleSessionStateActive
java.lang.Object
org.jivesoftware.smackx.jingleold.JingleSessionState
org.jivesoftware.smackx.jingleold.JingleSessionStateActive
Jingle.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enter()
Called when entering the state.void
exit()
Called when exiting the state.static JingleSessionState
A 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
-
JingleSessionStateActive
protected JingleSessionStateActive()
-
-
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:JingleSessionState
Called when entering the state.- Specified by:
enter
in classJingleSessionState
-
exit
Description copied from class:JingleSessionState
Called when exiting the state.- Specified by:
exit
in classJingleSessionState
-
processJingle
Description copied from class:JingleSessionState
Process an incoming Jingle Packet. When you look at the GoF State pattern this method roughly corresponds to example on p310: ProcessOctet()- Specified by:
processJingle
in classJingleSessionState
- Parameters:
session
- the jingle session.jingle
- the jingle stanza.action
- the jingle action.- Returns:
- the resulting IQ.
-