Class JingleSessionStateActive
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.JingleSessionState
-
- org.jivesoftware.smackx.jingleold.JingleSessionStateActive
-
public class JingleSessionStateActive extends JingleSessionState
Jingle.- See Also:
JingleSessionState
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJingleSessionStateActive()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter()Called when entering the state.voidexit()Called when exiting the state.static JingleSessionStategetInstance()A thread-safe means of getting the one instance of this class.IQprocessJingle(JingleSession session, Jingle jingle, JingleActionEnum action)Process an incoming Jingle Packet.-
Methods inherited from class org.jivesoftware.smackx.jingleold.JingleSessionState
toString
-
-
-
-
Constructor Detail
-
JingleSessionStateActive
protected JingleSessionStateActive()
-
-
Method Detail
-
getInstance
public static JingleSessionState getInstance()
A thread-safe means of getting the one instance of this class.- Returns:
- The singleton instance of this class.
-
enter
public void enter()
Description copied from class:JingleSessionStateCalled when entering the state.- Specified by:
enterin classJingleSessionState
-
exit
public void exit()
Description copied from class:JingleSessionStateCalled when exiting the state.- Specified by:
exitin classJingleSessionState
-
processJingle
public IQ processJingle(JingleSession session, Jingle jingle, JingleActionEnum action)
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: ProcessOctect()- Specified by:
processJinglein classJingleSessionState- Parameters:
session- the jingle session.jingle- the jingle stanza.action- the jingle action.- Returns:
- the resulting IQ.
-
-