public class ZSSLConnection extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZSSLConnection.Callback |
| Constructor and Description |
|---|
ZSSLConnection(SocketChannel socket,
SSLContext sslContext,
ExecutorService delegatedTaskWorkers,
int internalBufferSize,
HttpUrl url) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForData() |
boolean |
isConnectionReuse() |
boolean |
isHandshakeSuccess() |
void |
reuseConnection() |
void |
send(ByteBuffer data) |
void |
setCallback(ZSSLConnection.Callback callback) |
public ZSSLConnection(SocketChannel socket, SSLContext sslContext, ExecutorService delegatedTaskWorkers, int internalBufferSize, HttpUrl url) throws SSLException
SSLExceptionpublic void setCallback(ZSSLConnection.Callback callback)
public boolean isHandshakeSuccess()
public void reuseConnection()
public boolean isConnectionReuse()
public void checkForData()
throws IOException
IOExceptionpublic void send(ByteBuffer data)