Package | Description |
---|---|
org.xnio |
The main API package for XNIO.
|
org.xnio.sasl | |
org.xnio.ssl |
Modifier and Type | Field and Description |
---|---|
static OptionMap |
OptionMap.EMPTY
The empty option map.
|
Modifier and Type | Field and Description |
---|---|
static Option<OptionMap> |
Options.SSL_RNG_OPTIONS
The configuration of a secure RNG for SSL usage.
|
Modifier and Type | Method and Description |
---|---|
static <T> OptionMap |
OptionMap.create(Option<T> option,
T value)
Create a single-valued option map.
|
static <T1,T2> OptionMap |
OptionMap.create(Option<T1> option1,
T1 value1,
Option<T2> option2,
T2 value2)
Create a two-valued option map.
|
OptionMap |
OptionMap.Builder.getMap()
Build a map that reflects the current state of this builder.
|
Modifier and Type | Method and Description |
---|---|
IoFuture<ConnectedMessageChannel> |
XnioWorker.acceptDatagram(java.net.SocketAddress destination,
ChannelListener<? super ConnectedMessageChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Accept a message connection at a destination address.
|
protected IoFuture<ConnectedMessageChannel> |
XnioWorker.acceptLocalDatagram(LocalSocketAddress destination,
ChannelListener<? super ConnectedMessageChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to accept a local (UNIX domain) datagram connection.
|
protected IoFuture<ConnectedStreamChannel> |
XnioWorker.acceptLocalStream(LocalSocketAddress destination,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to accept a local (UNIX domain) stream connection.
|
IoFuture<ConnectedStreamChannel> |
XnioWorker.acceptStream(java.net.SocketAddress destination,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Accept a stream connection at a destination address.
|
protected IoFuture<ConnectedStreamChannel> |
XnioWorker.acceptTcpStream(java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to accept a TCP connection.
|
OptionMap.Builder |
OptionMap.Builder.addAll(OptionMap optionMap)
Add all entries from an existing option map to the one being built.
|
IoFuture<ConnectedMessageChannel> |
XnioWorker.connectDatagram(java.net.SocketAddress destination,
ChannelListener<? super ConnectedMessageChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Connect to a remote stream server.
|
IoFuture<ConnectedMessageChannel> |
XnioWorker.connectDatagram(java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
ChannelListener<? super ConnectedMessageChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Connect to a remote datagram server.
|
protected IoFuture<ConnectedMessageChannel> |
XnioWorker.connectLocalDatagram(LocalSocketAddress bindAddress,
LocalSocketAddress destination,
ChannelListener<? super ConnectedMessageChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to connect to a local (UNIX domain) datagram server.
|
protected IoFuture<ConnectedStreamChannel> |
XnioWorker.connectLocalStream(LocalSocketAddress bindAddress,
LocalSocketAddress destinationAddress,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to connect to a local (UNIX domain) server.
|
IoFuture<ConnectedStreamChannel> |
XnioWorker.connectStream(java.net.SocketAddress destination,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Connect to a remote stream server.
|
IoFuture<ConnectedStreamChannel> |
XnioWorker.connectStream(java.net.SocketAddress destination,
ChannelListener<? super ConnectedStreamChannel> openListener,
OptionMap optionMap)
Connect to a remote stream server.
|
IoFuture<ConnectedStreamChannel> |
XnioWorker.connectStream(java.net.SocketAddress bindAddress,
java.net.SocketAddress destination,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Connect to a remote stream server.
|
protected IoFuture<ConnectedStreamChannel> |
XnioWorker.connectTcpStream(java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destinationAddress,
ChannelListener<? super ConnectedStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to connect to a TCP server.
|
protected IoFuture<ConnectedMessageChannel> |
XnioWorker.connectUdpDatagram(java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedMessageChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Implementation helper method to connect to a UDP server.
|
protected AcceptingChannel<? extends ConnectedStreamChannel> |
XnioWorker.createLocalStreamServer(LocalSocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> acceptListener,
OptionMap optionMap)
Implementation helper method to create a UNIX domain stream server.
|
void |
XnioWorker.createOneWayPipe(ChannelListener<? super StreamSourceChannel> sourceListener,
ChannelListener<? super StreamSinkChannel> sinkListener,
OptionMap optionMap)
Open a unidirectional stream pipe.
|
void |
XnioWorker.createPipe(ChannelListener<? super StreamChannel> leftOpenListener,
ChannelListener<? super StreamChannel> rightOpenListener,
OptionMap optionMap)
Open a bidirectional stream pipe.
|
AcceptingChannel<? extends ConnectedStreamChannel> |
XnioWorker.createStreamServer(java.net.SocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> acceptListener,
OptionMap optionMap)
Create a stream server, for TCP or UNIX domain servers.
|
protected AcceptingChannel<? extends ConnectedStreamChannel> |
XnioWorker.createTcpServer(java.net.InetSocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedStreamChannel>> acceptListener,
OptionMap optionMap)
Implementation helper method to create a TCP stream server.
|
MulticastMessageChannel |
XnioWorker.createUdpServer(java.net.InetSocketAddress bindAddress,
ChannelListener<? super MulticastMessageChannel> bindListener,
OptionMap optionMap)
Create a UDP server.
|
MulticastMessageChannel |
XnioWorker.createUdpServer(java.net.InetSocketAddress bindAddress,
OptionMap optionMap)
Create a UDP server.
|
XnioWorker |
Xnio.createWorker(OptionMap optionMap)
Construct a new XNIO worker.
|
XnioWorker |
Xnio.createWorker(java.lang.ThreadGroup threadGroup,
OptionMap optionMap)
Construct a new XNIO worker.
|
abstract XnioWorker |
Xnio.createWorker(java.lang.ThreadGroup threadGroup,
OptionMap optionMap,
java.lang.Runnable terminationTask)
Construct a new XNIO worker.
|
boolean |
OptionMap.equals(OptionMap other)
Determine whether this option map is equal to another.
|
XnioSsl |
Xnio.getSslProvider(javax.net.ssl.KeyManager[] keyManagers,
javax.net.ssl.TrustManager[] trustManagers,
OptionMap optionMap)
Get an SSL provider for this XNIO provider.
|
XnioSsl |
Xnio.getSslProvider(OptionMap optionMap)
Get an SSL provider for this XNIO provider.
|
java.nio.channels.FileChannel |
Xnio.openFile(java.io.File file,
OptionMap options)
Open a file on the filesystem.
|
java.nio.channels.FileChannel |
Xnio.openFile(java.lang.String fileName,
OptionMap options)
Open a file on the filesystem.
|
Constructor and Description |
---|
XnioWorker(Xnio xnio,
java.lang.ThreadGroup threadGroup,
OptionMap optionMap,
java.lang.Runnable terminationTask)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
SaslUtils.createPropertyMap(OptionMap optionMap,
boolean secure)
Create a SASL property map from an XNIO option map.
|
Modifier and Type | Method and Description |
---|---|
IoFuture<ConnectedSslStreamChannel> |
JsseXnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap) |
abstract IoFuture<ConnectedSslStreamChannel> |
XnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
IoFuture<ConnectedSslStreamChannel> |
JsseXnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap) |
abstract IoFuture<ConnectedSslStreamChannel> |
XnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
IoFuture<ConnectedSslStreamChannel> |
JsseXnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap) |
abstract IoFuture<ConnectedSslStreamChannel> |
XnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
IoFuture<ConnectedSslStreamChannel> |
JsseXnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap) |
abstract IoFuture<ConnectedSslStreamChannel> |
XnioSsl.connectSsl(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
static javax.net.ssl.SSLContext |
JsseSslUtils.createSSLContext(javax.net.ssl.KeyManager[] keyManagers,
javax.net.ssl.TrustManager[] trustManagers,
java.security.SecureRandom secureRandom,
OptionMap optionMap)
Create a new SSL context, configured from an option map and the given parameters.
|
static javax.net.ssl.SSLContext |
JsseSslUtils.createSSLContext(OptionMap optionMap)
Create a new SSL context, configured from an option map.
|
static javax.net.ssl.SSLEngine |
JsseSslUtils.createSSLEngine(javax.net.ssl.SSLContext sslContext,
OptionMap optionMap,
java.net.InetSocketAddress peerAddress)
Create a new client mode SSL engine, configured from an option map.
|
AcceptingChannel<ConnectedSslStreamChannel> |
JsseXnioSsl.createSslTcpServer(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener,
OptionMap optionMap) |
abstract AcceptingChannel<ConnectedSslStreamChannel> |
XnioSsl.createSslTcpServer(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener,
OptionMap optionMap)
Create a bound TCP SSL server.
|
Constructor and Description |
---|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap)
Construct a new instance.
|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap,
javax.net.ssl.SSLContext sslContext)
Construct a new instance.
|
XnioSsl(Xnio xnio,
javax.net.ssl.SSLContext sslContext,
OptionMap optionMap)
Construct a new instance.
|
Copyright © 2010 JBoss, a division of Red Hat, Inc.