Class LegacyEndpoint

    • Constructor Detail

      • LegacyEndpoint

        public LegacyEndpoint​(Endpoint endpoint)
        Deprecated.
    • Method Detail

      • isOpen

        public boolean isOpen()
        Deprecated.
        Description copied from interface: HandleableCloseable
        Read the status of this resource. This is just a snapshot in time; there is no guarantee that the resource will remain open for any amount of time, even if this method returns true.
        Specified by:
        isOpen in interface HandleableCloseable<Endpoint>
        Returns:
        true if the resource is still open
      • getAttachments

        public Attachments getAttachments()
        Deprecated.
        Description copied from interface: Attachable
        Get the attachments for this entity.
        Specified by:
        getAttachments in interface Attachable
        Returns:
        the attachments
      • getName

        public String getName()
        Deprecated.
        Description copied from interface: Endpoint
        Get the name of this endpoint.
        Specified by:
        getName in interface Endpoint
        Returns:
        the endpoint name, or null if there is no name
      • getConnectedIdentity

        public org.xnio.IoFuture<ConnectionPeerIdentity> getConnectedIdentity​(URI destination,
                                                                              SSLContext sslContext,
                                                                              org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration)
        Deprecated.
        Description copied from interface: Endpoint
        Get a possibly shared, possibly existing connection to the destination. The authentication and SSL configuration is specified directly.
        Specified by:
        getConnectedIdentity in interface Endpoint
        Parameters:
        destination - the destination URI (must not be null)
        sslContext - the SSL context to use for secure connections (may be null)
        authenticationConfiguration - the authentication configuration to use (must not be null)
        Returns:
        the future connection identity (not null)
      • getConnectedIdentityIfExists

        public org.xnio.IoFuture<ConnectionPeerIdentity> getConnectedIdentityIfExists​(URI destination,
                                                                                      SSLContext sslContext,
                                                                                      org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration)
        Deprecated.
        Description copied from interface: Endpoint
        Get a possibly shared, possibly existing connection to the destination, if the connection was already established. The authentication and SSL configuration is specified directly.

        If no existing connection was found, null is returned. If a non-null IoFuture is returned, it may represent a complete connection, a failed attempt, or an in-progress attempt.

        Specified by:
        getConnectedIdentityIfExists in interface Endpoint
        Parameters:
        destination - the destination URI (must not be null)
        sslContext - the SSL context to use for secure connections (may be null)
        authenticationConfiguration - the authentication configuration to use (must not be null)
        Returns:
        the existing connection, or null if no connection currently exists
      • connect

        public org.xnio.IoFuture<Connection> connect​(URI destination,
                                                     org.xnio.OptionMap connectOptions)
        Deprecated.
        Description copied from interface: Endpoint
        Open an unshared connection with a peer. Returns a future connection which may be used to cancel the connection attempt. This method does not block; use the return value to wait for a result if you wish to block.

        You must have the connect EndpointPermission to invoke this method.

        Specified by:
        connect in interface Endpoint
        Parameters:
        destination - the destination
        connectOptions - options to configure this connection
        Returns:
        the future connection
      • connect

        public org.xnio.IoFuture<Connection> connect​(URI destination,
                                                     org.xnio.OptionMap connectOptions,
                                                     org.wildfly.security.auth.client.AuthenticationContext authenticationContext)
        Deprecated.
        Description copied from interface: Endpoint
        Open an unshared connection with a peer. Returns a future connection which may be used to cancel the connection attempt. This method does not block; use the return value to wait for a result if you wish to block.

        You must have the connect EndpointPermission to invoke this method.

        Specified by:
        connect in interface Endpoint
        Parameters:
        destination - the destination
        connectOptions - options to configure this connection
        authenticationContext - the client authentication context to use
        Returns:
        the future connection
      • connect

        public org.xnio.IoFuture<Connection> connect​(URI destination,
                                                     InetSocketAddress bindAddress,
                                                     org.xnio.OptionMap connectOptions,
                                                     org.wildfly.security.auth.client.AuthenticationContext authenticationContext)
        Deprecated.
        Description copied from interface: Endpoint
        Open an unshared connection with a peer. Returns a future connection which may be used to cancel the connection attempt. This method does not block; use the return value to wait for a result if you wish to block.

        You must have the connect EndpointPermission to invoke this method.

        Specified by:
        connect in interface Endpoint
        Parameters:
        destination - the destination
        bindAddress - the local bind address
        connectOptions - options to configure this connection
        authenticationContext - the client authentication context to use
        Returns:
        the future connection
      • connect

        public org.xnio.IoFuture<Connection> connect​(URI destination,
                                                     InetSocketAddress bindAddress,
                                                     org.xnio.OptionMap connectOptions,
                                                     SSLContext sslContext,
                                                     org.wildfly.security.auth.client.AuthenticationConfiguration connectionConfiguration)
        Deprecated.
        Description copied from interface: Endpoint
        Open an unshared connection with a peer. Returns a future connection which may be used to cancel the connection attempt. This method does not block; use the return value to wait for a result if you wish to block.

        You must have the connect EndpointPermission to invoke this method.

        Specified by:
        connect in interface Endpoint
        Parameters:
        destination - the destination
        bindAddress - the local bind address
        connectOptions - options to configure this connection
        sslContext - the SSL context to use for secure connections (may be null)
        connectionConfiguration - the connection authentication configuration (must not be null)
        Returns:
        the future connection (not null)
      • connect

        public org.xnio.IoFuture<Connection> connect​(URI destination,
                                                     org.xnio.OptionMap connectOptions,
                                                     CallbackHandler callbackHandler)
                                              throws IOException
        Deprecated.
        Description copied from interface: Endpoint
        Open an unshared connection with a peer. Returns a future connection which may be used to cancel the connection attempt. This method does not block; use the return value to wait for a result if you wish to block.

        You must have the connect EndpointPermission to invoke this method.

        Specified by:
        connect in interface Endpoint
        Parameters:
        destination - the destination
        connectOptions - options to configure this connection
        callbackHandler - the local callback handler to use for authentication
        Returns:
        the future connection (not null)
        Throws:
        IOException
      • isValidUriScheme

        public boolean isValidUriScheme​(String uriScheme)
        Deprecated.
        Description copied from interface: Endpoint
        Determine whether the given URI scheme is valid for this endpoint.
        Specified by:
        isValidUriScheme in interface Endpoint
        Parameters:
        uriScheme - the URI scheme
        Returns:
        true if the URI scheme is valid at the time this method is called
      • getXnioWorker

        public org.xnio.XnioWorker getXnioWorker()
        Deprecated.
        Description copied from interface: Endpoint
        Get the XNIO worker configured for this endpoint.
        Specified by:
        getXnioWorker in interface Endpoint
        Returns:
        the XNIO worker