org.littleshoot.proxy
Interface HttpProxyServer

All Known Implementing Classes:
DefaultHttpProxyServer

public interface HttpProxyServer

Interface for the top-level proxy server class.


Method Summary
 void addProxyAuthenticationHandler(ProxyAuthorizationHandler pah)
          Adds a new handler for proxy authentication.
 void start()
          Starts the server.
 void start(boolean localOnly, boolean anyAddress)
          Starts the server.
 void stop()
          Stops the server.
 

Method Detail

start

void start()
Starts the server.


stop

void stop()
Stops the server.


start

void start(boolean localOnly,
           boolean anyAddress)
Starts the server.

Parameters:
localOnly - If true, the server will only allow connections from the local computer. This can significantly improve security in some cases.
anyAddress - Whether or not to bind to "any" address - 0.0.0.0. This is the default.

addProxyAuthenticationHandler

void addProxyAuthenticationHandler(ProxyAuthorizationHandler pah)
Adds a new handler for proxy authentication. Handlers are called in the order they're added. If one handler accepts the user's credentials, it passes them on to the next handler.

Parameters:
pah - The new authentication handler.


Copyright © 2009-2013 LittleShoot. All Rights Reserved.