Package org.simpleframework.transport
Class Handshake.Committer
- java.lang.Object
-
- org.simpleframework.transport.Phase
-
- org.simpleframework.transport.Handshake.Committer
-
- All Implemented Interfaces:
java.lang.Runnable
,Operation
- Enclosing class:
- Handshake
private class Handshake.Committer extends Phase
TheCommitter
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.
-
-
Constructor Summary
Constructors Constructor Description Committer(Negotiation state, Reactor reactor, Trace trace)
Constructor for theCommitter
task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
This is used to execute the task.
-
-
-
Constructor Detail
-
Committer
public Committer(Negotiation state, Reactor reactor, Trace trace)
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 Detail
-
execute
public void execute() throws java.io.IOException
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.
-
-