XNIO API 2.1.0.CR2

org.jboss.xnio
Interface SslTcpServer

All Superinterfaces:
AcceptingServer<InetSocketAddress,BoundChannel<InetSocketAddress>,SslTcpChannel>, BoundServer<InetSocketAddress,BoundChannel<InetSocketAddress>>, Channel, Closeable, CloseableChannel, Configurable

public interface SslTcpServer
extends AcceptingServer<InetSocketAddress,BoundChannel<InetSocketAddress>,SslTcpChannel>

An SSL TCP server convenience interface.


Method Summary
 ChannelListener.Setter<? extends BoundChannel<InetSocketAddress>> getBindSetter()
          Get the bind listener setter for this channel.
 ChannelListener.Setter<? extends SslTcpServer> getCloseSetter()
          Get the setter which can be used to change the close listener for this channel.
 ChannelListener.Setter<? extends SslTcpChannel> getOpenSetter()
          Get the open listener setter for this server.
 
Methods inherited from interface org.jboss.xnio.channels.BoundServer
bind, getChannels
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 
Methods inherited from interface org.jboss.xnio.channels.Configurable
getOption, setOption, supportsOption
 

Method Detail

getBindSetter

ChannelListener.Setter<? extends BoundChannel<InetSocketAddress>> getBindSetter()
Get the bind listener setter for this channel. The listener is called every time a channel is bound.

Specified by:
getBindSetter in interface AcceptingServer<InetSocketAddress,BoundChannel<InetSocketAddress>,SslTcpChannel>
Specified by:
getBindSetter in interface BoundServer<InetSocketAddress,BoundChannel<InetSocketAddress>>
Returns:
the listener setter

getCloseSetter

ChannelListener.Setter<? extends SslTcpServer> getCloseSetter()
Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.

Specified by:
getCloseSetter in interface AcceptingServer<InetSocketAddress,BoundChannel<InetSocketAddress>,SslTcpChannel>
Specified by:
getCloseSetter in interface BoundServer<InetSocketAddress,BoundChannel<InetSocketAddress>>
Specified by:
getCloseSetter in interface CloseableChannel
Returns:
the setter

getOpenSetter

ChannelListener.Setter<? extends SslTcpChannel> getOpenSetter()
Get the open listener setter for this server. The listener will be called each time a connection is accepted. If the listener is null, the channel will be immediately closed.

Specified by:
getOpenSetter in interface AcceptingServer<InetSocketAddress,BoundChannel<InetSocketAddress>,SslTcpChannel>
Returns:
the open setter

XNIO API 2.1.0.CR2

Copyright © 2010 JBoss, a division of Red Hat, Inc.