Package org.simpleframework.transport
Class Handshake.Committer
java.lang.Object
org.simpleframework.transport.Phase
org.simpleframework.transport.Handshake.Committer
- Enclosing class:
Handshake
The
Committer
task is used to transfer the transport
created to the processor. This is executed when the SSL
handshake is completed. It allows the transporter to use the
newly created transport to read and write in plain text and
to have the SSL transport encrypt and decrypt transparently.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCommitter
(Negotiation state, Reactor reactor, Trace trace) Constructor for theCommitter
task. -
Method Summary
-
Constructor Details
-
Committer
Constructor for theCommitter
task. This is used to pass the transport object object to the processor when the SSL handshake has completed.- Parameters:
state
- this is the underlying negotiation to usereactor
- this is the reactor used for I/O notificationstrace
- the trace that is used to monitor the handshake
-
-
Method Details
-
execute
This is used to execute the task. It is up to the specific task implementation to decide what to do when executed. If the task needs to read or write data then it can attempt to perform the read or write, if it incomplete the it can be scheduled for execution with the reactor.- Overrides:
execute
in classPhase
- Throws:
IOException
-