public class JSSSocketChannel
extends java.nio.channels.SocketChannel
Constructor and Description |
---|
JSSSocketChannel(JSSSocket sslSocket,
java.nio.channels.SocketChannel parent,
JSSEngine engine) |
JSSSocketChannel(JSSSocket sslSocket,
java.nio.channels.SocketChannel parent,
java.net.Socket parentSocket,
java.nio.channels.ReadableByteChannel readChannel,
java.nio.channels.WritableByteChannel writeChannel,
JSSEngine engine) |
JSSSocketChannel(JSSSocket sslSocket,
java.net.Socket parentSocket,
java.nio.channels.ReadableByteChannel readChannel,
java.nio.channels.WritableByteChannel writeChannel,
JSSEngine engine) |
Modifier and Type | Method and Description |
---|---|
JSSSocketChannel |
bind(java.net.SocketAddress local) |
boolean |
connect(java.net.SocketAddress remote) |
boolean |
finishConnect() |
java.net.SocketAddress |
getLocalAddress() |
<T> T |
getOption(java.net.SocketOption<T> name) |
java.net.SocketAddress |
getRemoteAddress() |
void |
implCloseSelectableChannel() |
void |
implConfigureBlocking(boolean block) |
boolean |
isConnected() |
boolean |
isConnectionPending() |
int |
read(java.nio.ByteBuffer dst) |
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
void |
setAutoClose(boolean on)
Set whether or not to close the underlying Socket when the SSLSocket
or this channel is closed.
|
void |
setConsumedData(java.io.InputStream consumed)
Give data already consumed by a call to the underlying socket's read
method to this Socket, allowing it to be read by the SSLEngine.
|
<T> JSSSocketChannel |
setOption(java.net.SocketOption<T> name,
T value) |
JSSSocketChannel |
shutdownInput() |
JSSSocketChannel |
shutdownOutput() |
JSSSocket |
socket() |
java.util.Set<java.net.SocketOption<?>> |
supportedOptions() |
int |
write(java.nio.ByteBuffer src) |
long |
write(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
begin, close, end, isOpen
public JSSSocketChannel(JSSSocket sslSocket, java.nio.channels.SocketChannel parent, java.net.Socket parentSocket, java.nio.channels.ReadableByteChannel readChannel, java.nio.channels.WritableByteChannel writeChannel, JSSEngine engine) throws java.io.IOException
java.io.IOException
public JSSSocketChannel(JSSSocket sslSocket, java.nio.channels.SocketChannel parent, JSSEngine engine) throws java.io.IOException
java.io.IOException
public void setConsumedData(java.io.InputStream consumed) throws java.io.IOException
java.io.IOException
public void setAutoClose(boolean on)
public boolean finishConnect() throws java.io.IOException
finishConnect
in class java.nio.channels.SocketChannel
java.io.IOException
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
read
in class java.nio.channels.SocketChannel
java.io.IOException
public long read(java.nio.ByteBuffer[] dsts, int offset, int length) throws java.io.IOException
read
in interface java.nio.channels.ScatteringByteChannel
read
in class java.nio.channels.SocketChannel
java.io.IOException
public int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
write
in class java.nio.channels.SocketChannel
java.io.IOException
public long write(java.nio.ByteBuffer[] srcs, int offset, int length) throws java.io.IOException
write
in interface java.nio.channels.GatheringByteChannel
write
in class java.nio.channels.SocketChannel
java.io.IOException
public void implCloseSelectableChannel() throws java.io.IOException
implCloseSelectableChannel
in class java.nio.channels.spi.AbstractSelectableChannel
java.io.IOException
public JSSSocketChannel bind(java.net.SocketAddress local) throws java.io.IOException
bind
in interface java.nio.channels.NetworkChannel
bind
in class java.nio.channels.SocketChannel
java.io.IOException
public boolean connect(java.net.SocketAddress remote) throws java.io.IOException
connect
in class java.nio.channels.SocketChannel
java.io.IOException
public <T> T getOption(java.net.SocketOption<T> name) throws java.io.IOException
java.io.IOException
public java.util.Set<java.net.SocketOption<?>> supportedOptions()
public <T> JSSSocketChannel setOption(java.net.SocketOption<T> name, T value) throws java.io.IOException
setOption
in interface java.nio.channels.NetworkChannel
setOption
in class java.nio.channels.SocketChannel
java.io.IOException
public JSSSocket socket()
socket
in class java.nio.channels.SocketChannel
public boolean isConnected()
isConnected
in class java.nio.channels.SocketChannel
public boolean isConnectionPending()
isConnectionPending
in class java.nio.channels.SocketChannel
public java.net.SocketAddress getLocalAddress() throws java.io.IOException
getLocalAddress
in interface java.nio.channels.NetworkChannel
getLocalAddress
in class java.nio.channels.SocketChannel
java.io.IOException
public java.net.SocketAddress getRemoteAddress() throws java.io.IOException
getRemoteAddress
in class java.nio.channels.SocketChannel
java.io.IOException
public JSSSocketChannel shutdownInput() throws java.io.IOException
shutdownInput
in class java.nio.channels.SocketChannel
java.io.IOException
public JSSSocketChannel shutdownOutput() throws java.io.IOException
shutdownOutput
in class java.nio.channels.SocketChannel
java.io.IOException
public void implConfigureBlocking(boolean block) throws java.io.IOException
implConfigureBlocking
in class java.nio.channels.spi.AbstractSelectableChannel
java.io.IOException