Class ZSSLConnection
- java.lang.Object
-
- com.zing.zalo.zbrowser.downloader.ZSSLConnection
-
public class ZSSLConnection extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceZSSLConnection.Callback
-
Constructor Summary
Constructors Constructor Description ZSSLConnection(SocketChannel socket, SSLContext sslContext, ExecutorService delegatedTaskWorkers, int internalBufferSize, HttpUrl url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckForData()booleanisConnectionReuse()booleanisHandshakeSuccess()voidreuseConnection()voidsend(ByteBuffer data)voidsetCallback(ZSSLConnection.Callback callback)
-
-
-
Constructor Detail
-
ZSSLConnection
public ZSSLConnection(SocketChannel socket, SSLContext sslContext, ExecutorService delegatedTaskWorkers, int internalBufferSize, HttpUrl url) throws SSLException
- Throws:
SSLException
-
-
Method Detail
-
setCallback
public void setCallback(ZSSLConnection.Callback callback)
-
isHandshakeSuccess
public boolean isHandshakeSuccess()
-
reuseConnection
public void reuseConnection()
-
isConnectionReuse
public boolean isConnectionReuse()
-
checkForData
public void checkForData() throws IOException- Throws:
IOException
-
send
public void send(ByteBuffer data)
-
-