
public interface Endpoint extends HandleableCloseable<Endpoint>, Attachable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Endpoint.ListenerFlag
Flags which can be passed in to listener registration methods.
|
HandleableCloseable.Key| Modifier and Type | Method and Description |
|---|---|
Registration |
addConnectionProvider(java.lang.String uriScheme,
ConnectionProviderFactory providerFactory,
org.xnio.OptionMap optionMap)
Register a connection provider for a URI scheme.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
javax.security.auth.callback.CallbackHandler callbackHandler)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
javax.security.auth.callback.CallbackHandler callbackHandler,
javax.net.ssl.SSLContext sslContext)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
javax.security.auth.callback.CallbackHandler callbackHandler,
org.xnio.ssl.XnioSsl xnioSsl)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
java.lang.String userName,
java.lang.String realmName,
char[] password)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
java.lang.String userName,
java.lang.String realmName,
char[] password,
javax.net.ssl.SSLContext sslContext)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.lang.String protocol,
java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
org.xnio.OptionMap connectOptions,
java.lang.String userName,
java.lang.String realmName,
char[] password,
org.xnio.ssl.XnioSsl xnioSsl)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions,
javax.security.auth.callback.CallbackHandler callbackHandler)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions,
javax.security.auth.callback.CallbackHandler callbackHandler,
javax.net.ssl.SSLContext sslContext)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions,
javax.security.auth.callback.CallbackHandler callbackHandler,
org.xnio.ssl.XnioSsl xnioSsl)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions,
java.lang.String userName,
java.lang.String realmName,
char[] password)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions,
java.lang.String userName,
java.lang.String realmName,
char[] password,
javax.net.ssl.SSLContext sslContext)
Open a connection with a peer.
|
org.xnio.IoFuture<Connection> |
connect(java.net.URI destination,
org.xnio.OptionMap connectOptions,
java.lang.String userName,
java.lang.String realmName,
char[] password,
org.xnio.ssl.XnioSsl xnioSsl)
Open a connection with a peer.
|
<T> T |
getConnectionProviderInterface(java.lang.String uriScheme,
java.lang.Class<T> expectedType)
Get the interface for a connection provider.
|
java.lang.String |
getName()
Get the name of this endpoint.
|
org.xnio.XnioWorker |
getXnioWorker()
Get the XNIO worker configured for this endpoint.
|
boolean |
isValidUriScheme(java.lang.String uriScheme)
Determine whether the given URI scheme is valid for this endpoint.
|
Registration |
registerService(java.lang.String serviceType,
OpenListener openListener,
org.xnio.OptionMap optionMap)
Register a new service.
|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsyncgetAttachmentsjava.lang.String getName()
null if there is no nameRegistration registerService(java.lang.String serviceType, OpenListener openListener, org.xnio.OptionMap optionMap) throws ServiceRegistrationException
serviceType - the service typeopenListener - the channel open listeneroptionMap - the option mapServiceRegistrationException - if the service could not be registeredorg.xnio.IoFuture<Connection> connect(java.net.URI destination) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectionjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions, javax.security.auth.callback.CallbackHandler callbackHandler) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authenticationjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions, javax.security.auth.callback.CallbackHandler callbackHandler, javax.net.ssl.SSLContext sslContext) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authenticationsslContext - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions, javax.security.auth.callback.CallbackHandler callbackHandler, org.xnio.ssl.XnioSsl xnioSsl) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authenticationxnioSsl - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions, java.lang.String userName, java.lang.String realmName, char[] password) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecifiedjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions, java.lang.String userName, java.lang.String realmName, char[] password, javax.net.ssl.SSLContext sslContext) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecifiedsslContext - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.net.URI destination, org.xnio.OptionMap connectOptions, java.lang.String userName, java.lang.String realmName, char[] password, org.xnio.ssl.XnioSsl xnioSsl) throws java.io.IOException
connect EndpointPermission to invoke this method.destination - the destinationconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecifiedxnioSsl - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocoljava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectionjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions, javax.security.auth.callback.CallbackHandler callbackHandler) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authenticationjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions, javax.security.auth.callback.CallbackHandler callbackHandler, javax.net.ssl.SSLContext sslContext) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authenticationsslContext - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions, javax.security.auth.callback.CallbackHandler callbackHandler, org.xnio.ssl.XnioSsl xnioSsl) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authenticationxnioSsl - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions, java.lang.String userName, java.lang.String realmName, char[] password) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecifiedjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions, java.lang.String userName, java.lang.String realmName, char[] password, javax.net.ssl.SSLContext sslContext) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecifiedsslContext - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptorg.xnio.IoFuture<Connection> connect(java.lang.String protocol, java.net.SocketAddress bindAddress, java.net.SocketAddress destination, org.xnio.OptionMap connectOptions, java.lang.String userName, java.lang.String realmName, char[] password, org.xnio.ssl.XnioSsl xnioSsl) throws java.io.IOException
connect EndpointPermission to invoke this method.protocol - the protocol to use for connectionbindAddress - the address to bind to, or null to choose one automatically as neededdestination - the destination address, or null if the protocol is not a network protocolconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecifiedxnioSsl - the SSL context to use for SSL connectionsjava.io.IOException - if an error occurs while starting the connect attemptRegistration addConnectionProvider(java.lang.String uriScheme, ConnectionProviderFactory providerFactory, org.xnio.OptionMap optionMap) throws DuplicateRegistrationException, java.io.IOException
addConnectionProvider EndpointPermission to invoke this method.uriScheme - the URI schemeproviderFactory - the provider factoryoptionMap - the configuration options for the connection providerjava.io.IOException - if the provider failed to initializeDuplicateRegistrationException - if there is already a provider registered to that URI scheme<T> T getConnectionProviderInterface(java.lang.String uriScheme,
java.lang.Class<T> expectedType)
throws UnknownURISchemeException,
java.lang.ClassCastException
getConnectionProviderInterface EndpointPermission to invoke this method.T - the expected type of the interfaceuriScheme - the URI scheme of the registered connection providerexpectedType - the expected type of the interfaceUnknownURISchemeException - if the given URI scheme is not registeredjava.lang.ClassCastException - if the interface type does not match the expected typeboolean isValidUriScheme(java.lang.String uriScheme)
uriScheme - the URI schemetrue if the URI scheme is valid at the time this method is calledorg.xnio.XnioWorker getXnioWorker()
Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.