Class ClientConnectionConfiguration

    • Method Detail

      • createConnection

        public abstract CompletableFuture<Connection> createConnection​(XmppSession xmppSession,
                                                                       SessionOpen sessionOpen)
        A factory method to create the connection.
        Parameters:
        xmppSession - The XMPP session, which is associated with the connection.
        sessionOpen - The session open element.
        Returns:
        The connection.
      • getHostname

        public final String getHostname()
        Gets the hostname.
        Returns:
        The hostname.
      • getPort

        public final int getPort()
        Gets the port.
        Returns:
        The port.
      • getProxy

        public final Proxy getProxy()
        Gets the proxy.
        Returns:
        The proxy.
      • getHostnameVerifier

        public final HostnameVerifier getHostnameVerifier()
        Gets the hostname verifier.
        Returns:
        The hostname verifier.
      • getConnectTimeout

        public final int getConnectTimeout()
        Gets the timeout for connection establishment.
        Returns:
        The timeout.
      • getCompressionMethods

        public final List<CompressionMethod> getCompressionMethods()
        Gets the compression methods.
        Returns:
        The compression methods.