Apache Tomcat 7.0.54

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.


Method Summary
 void close()
           
 Future<Void> handshake()
           
 Future<Integer> read(ByteBuffer dst)
           
<B,A extends B>
void
read(ByteBuffer dst, A attachment,  handler)
           
 Future<Integer> write(ByteBuffer src)
           
<B,A extends B>
void
write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment,  handler)
           
 

Method Detail

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

Apache Tomcat 7.0.54

Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.