org.apache.tomcat.websocket
Interface AsyncChannelWrapper
- All Known Implementing Classes:
- AsyncChannelWrapperNonSecure, AsyncChannelWrapperSecure
public interface AsyncChannelWrapper
This is a wrapper for a AsynchronousSocketChannel
that limits the methods available thereby simplifying the process of
implementing SSL/TLS support since there are fewer methods to intercept.
read
Future<Integer> read(ByteBuffer dst)
read
<B,A extends B> void read(ByteBuffer dst,
A attachment,
handler)
write
Future<Integer> write(ByteBuffer src)
write
<B,A extends B> void write(ByteBuffer[] srcs,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
handler)
close
void close()
handshake
Future<Void> handshake()
throws SSLException
- Throws:
SSLException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.