/** * 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 * * @return this returns the operation used for processing */ public Operation getInstance(Socket socket) throws IOException { return getInstance(socket, socket.getEngine()); }
/** * 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 * * @return this returns the operation used for processing */ public Operation getInstance(Socket socket) throws IOException { return getInstance(socket, socket.getEngine()); }
/** * 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 * * @return this returns the operation used for processing */ public Operation getInstance(Socket socket) throws IOException { return getInstance(socket, socket.getEngine()); }
/** * Used to connect the <code>Socket</code> which is a full duplex * TCP connection to a higher layer the application. It is this * layer that is responsible for interpreting a protocol or handling * messages in some manner. In the case of HTTP this will initiate * the consumption of a HTTP request after any SSL handshake is * finished if the connection is secure. * * @param socket this is the connected HTTP pipeline to process */ public void process(Socket socket) throws IOException { Operation task = factory.getInstance(socket); if(task != null) { reactor.process(task); } }
/** * Used to connect the <code>Socket</code> which is a full duplex * TCP connection to a higher layer the application. It is this * layer that is responsible for interpreting a protocol or handling * messages in some manner. In the case of HTTP this will initiate * the consumption of a HTTP request after any SSL handshake is * finished if the connection is secure. * * @param socket this is the connected HTTP pipeline to process */ public void process(Socket socket) throws IOException { Operation task = factory.getInstance(socket); if(task != null) { reactor.process(task); } }
/** * Used to process the <code>Pipeline</code> which is a full duplex * communication link that may contain several HTTP requests. This * will be used to read the requests from the <code>Pipeline</code> * and to pass these requests to a <code>Container</code> for * processing. * <p> * Typical usage of this method is to accept multiple pipeline * objects, each representing a unique HTTP channel to the client, * and process requests from those pipelines concurrently. * * @param socket this is the connected HTTP pipeline to process */ public void process(Socket socket) throws IOException { Operation task = factory.getInstance(socket); if(task != null) { negotiator.process(task); } }