|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.socket.server.ssl.protocol.SslConnectionImpl
public class SslConnectionImpl
SslConnection implementation.
| Constructor Summary | |
|---|---|
SslConnectionImpl(Object lock,
InetSocketAddress localAddress,
InetSocketAddress remoteAddress,
InputBufferStream inputDelegate,
OutputBufferStream outputDelegate,
SSLEngine engine,
BufferSquirtFactory bufferSquirtFactory,
TemporaryByteArrayFactory byteArrayFactory,
SslTaskExecutor taskExecutor)
Initiate. |
|
| Method Summary | |
|---|---|
InputBufferStream |
getInputBufferStream()
Obtains the InputBufferStream to obtain data from the client. |
InetSocketAddress |
getLocalAddress()
Obtains the local address for the Connection. |
Object |
getLock()
Obtains the lock to synchronize for using this
Connection. |
OutputBufferStream |
getOutputBufferStream()
Obtains the OutputBufferStream to write data to the client. |
InetSocketAddress |
getRemoteAddress()
Obtains the remote address for the Connection. |
boolean |
isSecure()
Indicates if the connection is over a secure channel (e.g. |
void |
processDataFromPeer()
Should data be available from the peer this triggers processing it to make it available for input. |
void |
validate()
Ensures the SslConnection is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SslConnectionImpl(Object lock,
InetSocketAddress localAddress,
InetSocketAddress remoteAddress,
InputBufferStream inputDelegate,
OutputBufferStream outputDelegate,
SSLEngine engine,
BufferSquirtFactory bufferSquirtFactory,
TemporaryByteArrayFactory byteArrayFactory,
SslTaskExecutor taskExecutor)
lock - Lock to coordinate access to this SslConnection.localAddress - Local InetSocketAddress.remoteAddress - Remote InetSocketAddress.inputDelegate - Delegate InputBufferStream to read the cipher text
from the peer.outputDelegate - Delegate OutputBufferStream to write the cipher text
to the peer.engine - SSLEngine to wrap/unwrap between plain text and cipher
text.bufferSquirtFactory - BufferSquirtFactory for the BufferStream
instances containing the application data.byteArrayFactory - TemporaryByteArrayFactory to create necessary
temporary byte array instances.taskExecutor - SslTaskExecutor to execute any necessary
SslTask instances.| Method Detail |
|---|
public void processDataFromPeer()
throws IOException
SslConnectionShould data be available from the peer this triggers processing it to make it available for input.
This is necessary as the SslConnection needs to be made aware
when further data is available from the peer, so that it can either:
processDataFromPeer in interface SslConnectionIOException - If fails to process the data from peer.
public void validate()
throws IOException
SslConnectionSslConnection is valid.
validate in interface SslConnectionIOException - IOException of the cause of this
SslConnection being invalid.public Object getLock()
Connectionsynchronize for using this
Connection.
getLock in interface ConnectionConnection.public InetSocketAddress getLocalAddress()
ConnectionConnection.
getLocalAddress in interface ConnectionInetSocketAddress describing the local Socket for
the Connection.public InetSocketAddress getRemoteAddress()
ConnectionConnection.
getRemoteAddress in interface ConnectionInetSocketAddress describing the remote Socket
for the Connection.public boolean isSecure()
Connection
isSecure in interface Connectiontrue if connection is over a secure channel.public InputBufferStream getInputBufferStream()
ConnectionInputBufferStream to obtain data from the client.
getInputBufferStream in interface ConnectionInputBufferStream.public OutputBufferStream getOutputBufferStream()
ConnectionOutputBufferStream to write data to the client.
getOutputBufferStream in interface ConnectionOutputBufferStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||