simple.http
Interface PipelineFactory

All Known Implementing Classes:
BufferedPipelineFactory

public interface PipelineFactory

The PipelineFactory enables any object that is using a PipelineHandler to produce the object desired for processing with a Socket. Once a TCP connection is established the Pipeline is produced and handed to the PipelineHandler.

The FilterPipeline object enables subclassed Pipeline objects to be created, used with this interface increased functionality can be added to the connection, like security or buffering.

Author:
Niall Gallagher

Method Summary
 Pipeline getInstance(java.net.Socket sock)
          This will produce a Pipeline with the desired functionality once the implementation wraps the given Socket.
 

Method Detail

getInstance

Pipeline getInstance(java.net.Socket sock)
                     throws java.io.IOException
This will produce a Pipeline with the desired functionality once the implementation wraps the given Socket.

Parameters:
sock - this is the Socket that will be used to create the implementation
Throws:
java.io.IOException - if the implementation could not be produced for some reason