Interface SessionOpen

  • All Superinterfaces:
    LanguageElement, StreamElement
    All Known Implementing Classes:
    Body, Open, StreamHeader

    public interface SessionOpen
    extends LanguageElement, StreamElement
    This interface describes the common attributes for opening a XMPP session.

    It is shared by different connection methods: TCP socket, BOSH and WebSocket, which all have different ways to open a session (initial stream header for socket connection, session creation request for BOSH, open frame for WebSockets).

    All session openings have the 'from', 'to', 'xml:lang' and an 'id' attribute in common.

    • Method Detail

      • getFrom

        Jid getFrom()
        Gets the 'from' attribute.
        Returns:
        The 'from' attribute.
      • getTo

        Jid getTo()
        Gets the 'to' attribute.
        Returns:
        The 'to' attribute.
      • getId

        String getId()
        Gets the 'id' attribute.
        Returns:
        The 'id' attribute.
      • getVersion

        String getVersion()
        Gets the XMPP version.
        Returns:
        The XMPP version.