Package org.apache.tomcat.websocket
Class AsyncChannelWrapperSecure
- java.lang.Object
- 
- org.apache.tomcat.websocket.AsyncChannelWrapperSecure
 
- 
- All Implemented Interfaces:
- AsyncChannelWrapper
 
 public class AsyncChannelWrapperSecure extends java.lang.Object implements AsyncChannelWrapper Wraps theAsynchronousSocketChannelwith SSL/TLS. This needs a lot more testing before it can be considered robust.
- 
- 
Constructor SummaryConstructors Constructor Description AsyncChannelWrapperSecure(java.nio.channels.AsynchronousSocketChannel socketChannel, javax.net.ssl.SSLEngine sslEngine)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.net.SocketAddressgetLocalAddress()java.util.concurrent.Future<java.lang.Void>handshake()java.util.concurrent.Future<java.lang.Integer>read(java.nio.ByteBuffer dst)<B,A extends B>
 voidread(java.nio.ByteBuffer dst, A attachment, java.nio.channels.CompletionHandler<java.lang.Integer,B> handler)java.util.concurrent.Future<java.lang.Integer>write(java.nio.ByteBuffer src)<B,A extends B>
 voidwrite(java.nio.ByteBuffer[] srcs, int offset, int length, long timeout, java.util.concurrent.TimeUnit unit, A attachment, java.nio.channels.CompletionHandler<java.lang.Long,B> handler)
 
- 
- 
- 
Method Detail- 
readpublic java.util.concurrent.Future<java.lang.Integer> read(java.nio.ByteBuffer dst) - Specified by:
- readin interface- AsyncChannelWrapper
 
 - 
readpublic <B,A extends B> void read(java.nio.ByteBuffer dst, A attachment, java.nio.channels.CompletionHandler<java.lang.Integer,B> handler)- Specified by:
- readin interface- AsyncChannelWrapper
 
 - 
writepublic java.util.concurrent.Future<java.lang.Integer> write(java.nio.ByteBuffer src) - Specified by:
- writein interface- AsyncChannelWrapper
 
 - 
writepublic <B,A extends B> void write(java.nio.ByteBuffer[] srcs, int offset, int length, long timeout, java.util.concurrent.TimeUnit unit, A attachment, java.nio.channels.CompletionHandler<java.lang.Long,B> handler)- Specified by:
- writein interface- AsyncChannelWrapper
 
 - 
closepublic void close() - Specified by:
- closein interface- AsyncChannelWrapper
 
 - 
handshakepublic java.util.concurrent.Future<java.lang.Void> handshake() throws javax.net.ssl.SSLException- Specified by:
- handshakein interface- AsyncChannelWrapper
- Throws:
- javax.net.ssl.SSLException
 
 - 
getLocalAddresspublic java.net.SocketAddress getLocalAddress() throws java.io.IOException- Specified by:
- getLocalAddressin interface- AsyncChannelWrapper
- Throws:
- java.io.IOException
 
 
- 
 
-