Class Handshake.Committer

java.lang.Object
org.simpleframework.transport.Phase
org.simpleframework.transport.Handshake.Committer
All Implemented Interfaces:
Runnable, Operation
Enclosing class:
Handshake

private class Handshake.Committer extends Phase
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.
  • Constructor Details

    • Committer

      public Committer(Negotiation state, Reactor reactor, Trace trace)
      Constructor for the Committer 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 use
      reactor - this is the reactor used for I/O notifications
      trace - the trace that is used to monitor the handshake
  • Method Details

    • execute

      public void execute() throws 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.
      Overrides:
      execute in class Phase
      Throws:
      IOException