/** * This is the main point of execution within the negotiation. It * is where the negotiation is performed. Negotiations are done * by performing a request response flow, governed by the SSL * engine associated with the transport. Typically the client is * the one to initiate the handshake and the server initiates the * termination sequence. This may be executed several times * depending on whether reading or writing blocks. * * @return this returns a task used to execute the next phase */ private Runnable process() throws IOException { PhaseType require = exchange(); if(require == CONSUME) { return new Consumer(this, reactor, trace); } if(require == PRODUCE) { return new Producer(this, reactor, trace); } return new Committer(this, reactor, trace); }
/** * This is the main point of execution within the negotiation. It * is where the negotiation is performed. Negotiations are done * by performing a request response flow, governed by the SSL * engine associated with the transport. Typically the client is * the one to initiate the handshake and the server initiates the * termination sequence. This may be executed several times * depending on whether reading or writing blocks. * * @return this returns a task used to execute the next phase */ private Runnable process() throws IOException { Status require = exchange(); if(require == CONSUME) { return new Consumer(this, trace); } if(require == PRODUCE) { return new Producer(this, trace); } return new Committer(this, trace); }
/** * This is the main point of execution within the negotiation. It * is where the negotiation is performed. Negotiations are done * by performing a request response flow, governed by the SSL * engine associated with the transport. Typically the client is * the one to initiate the handshake and the server initiates the * termination sequence. This may be executed several times * depending on whether reading or writing blocks. * * @return this returns a task used to execute the next phase */ private Runnable process() throws IOException { PhaseType require = exchange(); if(require == CONSUME) { return new Consumer(this, reactor, trace); } if(require == PRODUCE) { return new Producer(this, reactor, trace); } return new Committer(this, reactor, trace); }