Package org.apache.tomcat.websocket
Class AsyncChannelWrapperSecure
java.lang.Object
org.apache.tomcat.websocket.AsyncChannelWrapperSecure
- All Implemented Interfaces:
- AsyncChannelWrapper
Wraps the 
AsynchronousSocketChannel with SSL/TLS. This needs a lot more testing before it can be considered
 robust.- 
Constructor SummaryConstructorsConstructorDescriptionAsyncChannelWrapperSecure(AsynchronousSocketChannel socketChannel, SSLEngine sslEngine) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()read(ByteBuffer dst) <B,A extends B> 
 voidread(ByteBuffer dst, A attachment, CompletionHandler<Integer, B> handler) write(ByteBuffer src) <B,A extends B> 
 voidwrite(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, B> handler) 
- 
Constructor Details- 
AsyncChannelWrapperSecure
 
- 
- 
Method Details- 
read- Specified by:
- readin interface- AsyncChannelWrapper
 
- 
readpublic <B,A extends B> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer, B> handler) - Specified by:
- readin interface- AsyncChannelWrapper
 
- 
write- Specified by:
- writein interface- AsyncChannelWrapper
 
- 
writepublic <B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, B> handler) - Specified by:
- writein interface- AsyncChannelWrapper
 
- 
closepublic void close()- Specified by:
- closein interface- AsyncChannelWrapper
 
- 
handshake- Specified by:
- handshakein interface- AsyncChannelWrapper
- Throws:
- SSLException
 
- 
getLocalAddress- Specified by:
- getLocalAddressin interface- AsyncChannelWrapper
- Throws:
- IOException
 
 
-