Package jade.imtp.leap.nio
Class NIOJICPSConnection
- java.lang.Object
-
- jade.imtp.leap.JICP.Connection
-
- jade.imtp.leap.nio.NIOJICPConnection
-
- jade.imtp.leap.nio.NIOJICPSConnection
-
public class NIOJICPSConnection extends NIOJICPConnection
This class provides a nio based server connection for which ssl can be configured. ASSLEngineis used for dealing with handshaking and encrypting/decrypting application data. The superclass does the actualreading(also#fillPayload(java.nio.ByteBuffer)), andwritingfrom the SocketChannel and handles the application data.- Author:
- eduard
- See Also:
SSLContext
-
-
Field Summary
-
Fields inherited from class jade.imtp.leap.nio.NIOJICPConnection
INITIAL_BUFFER_SIZE, MAX_HEADER_SIZE
-
Fields inherited from class jade.imtp.leap.JICP.Connection
socketCnt
-
-
Constructor Summary
Constructors Constructor Description NIOJICPSConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()first try to send ssl close packet, then close channelStringtoString()-
Methods inherited from class jade.imtp.leap.nio.NIOJICPConnection
addBufferTransformer, getChannel, getRemoteHost, isClosed, moreDataAvailable, readPacket, writePacket, writeToChannel
-
-
-
-
Method Detail
-
close
public void close() throws IOExceptionfirst try to send ssl close packet, then close channel- Overrides:
closein classNIOJICPConnection- Throws:
IOException
-
-