/** * This method is used to create <code>Operation</code> object to * process the next phase of the negotiation. The operations that * are created using this factory ensure the processing can be * done asynchronously, which reduces the overhead the connection * thread has when handing the pipelines over for processing. * * @param socket this is the pipeline that is to be processed * @param engine this is the engine used for SSL negotiations * * @return this returns the operation used for processing */ private Operation getInstance(Socket socket, SSLEngine engine) throws IOException { Transport transport = new SocketTransport(socket, reactor, buffer, threshold); if(engine != null) { return new Handshake(processor, transport, reactor, client); } return new TransportDispatcher(processor, transport); } }
/** * This method is used to create <code>Operation</code> object to * process the next phase of the negotiation. The operations that * are created using this factory ensure the processing can be * done asynchronously, which reduces the overhead the connection * thread has when handing the pipelines over for processing. * * @param socket this is the pipeline that is to be processed * @param engine this is the engine used for SSL negotiations * * @return this returns the operation used for processing */ private Operation getInstance(Socket socket, SSLEngine engine) throws IOException { Transport transport = new SocketTransport(socket, negotiator, threshold, queue, buffer); if(engine != null) { return new Handshake(transport, negotiator, client); } return new Dispatcher(transport, negotiator); } }
/** * This method is used to create <code>Operation</code> object to * process the next phase of the negotiation. The operations that * are created using this factory ensure the processing can be * done asynchronously, which reduces the overhead the connection * thread has when handing the pipelines over for processing. * * @param socket this is the pipeline that is to be processed * @param engine this is the engine used for SSL negotiations * * @return this returns the operation used for processing */ private Operation getInstance(Socket socket, SSLEngine engine) throws IOException { Transport transport = new SocketTransport(socket, reactor, buffer, threshold); if(engine != null) { return new Handshake(processor, transport, reactor, client); } return new TransportDispatcher(processor, transport); } }