Class JingleSessionStateUnknown

java.lang.Object
org.jivesoftware.smackx.jingleold.JingleSessionState
org.jivesoftware.smackx.jingleold.JingleSessionStateUnknown

public class JingleSessionStateUnknown extends JingleSessionState
Jingle.
See Also:
  • Constructor Details

    • JingleSessionStateUnknown

      protected JingleSessionStateUnknown()
  • Method Details

    • 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: JingleSessionState
      Called when entering the state.
      Specified by:
      enter in class JingleSessionState
    • exit

      public void exit()
      Description copied from class: JingleSessionState
      Called when exiting the state.
      Specified by:
      exit in class JingleSessionState
    • processJingle

      public org.jivesoftware.smack.packet.IQ processJingle(JingleSession session, Jingle jingle, JingleActionEnum action) throws org.jivesoftware.smack.SmackException, InterruptedException
      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 class JingleSessionState
      Parameters:
      session - the jingle session.
      jingle - the jingle stanza.
      action - the jingle action.
      Returns:
      the resulting IQ.
      Throws:
      org.jivesoftware.smack.SmackException - if Smack detected an exceptional situation.
      InterruptedException - if the calling thread was interrupted.