Class BoshConnection

    • Method Detail

      • isSecure

        public final boolean isSecure()
      • detach

        public final long detach()
        Detaches this BOSH session without closing (aka terminating) it. This way the BOSH session is still alive on the server and can be ported over to a web page, but new BOSH requests are no longer sent by this connection.
        Returns:
        The current request ID (RID) which was used for the last BOSH request.
        See Also:
        https://conversejs.org/docs/html/#prebinding-and-single-session-support
      • flush

        public final void flush()
      • getSessionId

        public final String getSessionId()
        Gets the session id of this BOSH connection.
        Returns:
        The session id.
      • getRoute

        public final String getRoute()
        Gets the route.

        A connection manager MAY be configured to enable sessions with more than one server in different domains. When requesting a session with such a "proxy" connection manager, a client SHOULD include a 'route' attribute that specifies the protocol, hostname, and port of the server with which it wants to communicate, formatted as "proto:host:port" (e.g., "xmpp:example.com:9999").

        Returns:
        The route.