Package org.jppf.nio
Class SSLNioObject
java.lang.Object
org.jppf.nio.AbstractNioObject
org.jppf.nio.SSLNioObject
- All Implemented Interfaces:
NioObject
Implementation of
NioObject for reading or writing data from or to an SSL channel.
The channel and the corresponding SSLEngine are both
encapsulated within an instance of SSLHandlerImpl.- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.nio.AbstractNioObject
channelCount, count, location, size -
Constructor Summary
ConstructorsConstructorDescriptionSSLNioObject(int size, SSLHandler sslHandler) Construct this SSLMessage.SSLNioObject(DataLocation location, SSLHandler sslHandler) Construct this SSLMessage.SSLNioObject(JPPFBuffer buf, SSLHandler sslHandler) Construct this SSLMessage. -
Method Summary
Methods inherited from class org.jppf.nio.AbstractNioObject
getChannelCount, getData, getSize
-
Constructor Details
-
SSLNioObject
Construct this SSLMessage.- Parameters:
size- the size of the internal buffer.sslHandler- theSSLHandlerto use with this nio object.- Throws:
Exception- if any error occurs.
-
SSLNioObject
Construct this SSLMessage.- Parameters:
buf- the internal buffer.sslHandler- theSSLHandlerto use with this nio object.- Throws:
Exception- if any error occurs.
-
SSLNioObject
Construct this SSLMessage.- Parameters:
location- the location of the data to read from or write to.sslHandler- theSSLHandlerto use with this nio object.- Throws:
Exception- if any error occurs.
-
-
Method Details
-
read
Description copied from interface:NioObjectAttempt to read an object from an inbound channel.- Returns:
trueif an object was fully read,falseotherwise.- Throws:
Exception- if any error occurs.
-
write
Description copied from interface:NioObjectAttempt to write an object to an outbound channel.- Returns:
trueif an object was fully written,falseotherwise.- Throws:
Exception- if any error occurs.
-
reset
Description copied from interface:NioObjectReset this object.- Specified by:
resetin interfaceNioObject- Overrides:
resetin classAbstractNioObject- Returns:
- an Object of the same class.
-