org.littleshoot.proxy
Interface HttpProxyServer

All Known Implementing Classes:
DefaultHttpProxyServer

public interface HttpProxyServer

Interface for the top-level proxy server class.


Method Summary
 HttpProxyServerBootstrap clone()
           Clone the existing server, with a port 1 higher and everything else the same.
 int getIdleConnectionTimeout()
           
 InetSocketAddress getListenAddress()
          Return the address on which this proxy is listening.
 void setIdleConnectionTimeout(int idleConnectionTimeout)
           
 void stop()
          Stops the server and all related clones.
 

Method Detail

getIdleConnectionTimeout

int getIdleConnectionTimeout()

setIdleConnectionTimeout

void setIdleConnectionTimeout(int idleConnectionTimeout)

clone

HttpProxyServerBootstrap clone()

Clone the existing server, with a port 1 higher and everything else the same.

The new server will share event loops with the original server. The event loops will use whatever name was given to the first server in the clone group.

Returns:
a bootstrap that allows customizing and starting the cloned server

stop

void stop()
Stops the server and all related clones.


getListenAddress

InetSocketAddress getListenAddress()
Return the address on which this proxy is listening.

Returns:


Copyright © 2009-2014 LittleShoot. All Rights Reserved.