simple.http.connect
Interface Configurator


public interface Configurator

The Configurator object is used to allow custom socket configurations to be used for the connected clients. This is provided as it is clear that a single configuration cannot be suitable for all platforms. For example, it might nessecary to change the SO_LINGER option which controls how long the TCP socket remains lingering waiting for and ACK after the client closes the connection. On Linux, incorrect configurations can lead to exhaustion of file handles.

Author:
Niall Gallagher

Method Summary
 void configure(java.net.Socket sock)
          This method is used to configure the TCP connection before the Pipeline is created.
 

Method Detail

configure

void configure(java.net.Socket sock)
               throws java.io.IOException
This method is used to configure the TCP connection before the Pipeline is created. This will enable custom implementations to be used that can set various socket options that suit the server platform.

Parameters:
sock - this is the newly connected HTTP pipeline
Throws:
java.io.IOException