public interface HttpProxyServerBootstrap
HttpProxyServer. The HttpProxyServer is
built using start(). Sensible defaults are available for all
parameters such that start() could be called immediately if you
wish.| Modifier and Type | Method and Description |
|---|---|
HttpProxyServerBootstrap |
plusActivityTracker(ActivityTracker activityTracker)
Add an
ActivityTracker for tracking activity in this proxy. |
HttpProxyServer |
start()
Build and starts the server.
|
HttpProxyServerBootstrap |
withAddress(InetSocketAddress address)
Listen for incoming connections on the given address.
|
HttpProxyServerBootstrap |
withAllowLocalOnly(boolean allowLocalOnly)
Specify whether or not to only allow local connections.
|
HttpProxyServerBootstrap |
withAuthenticateSslClients(boolean authenticateSslClients)
Specify whether or not to authenticate inbound SSL clients (only applies
if
withSslEngineSource(SslEngineSource) has been set). |
HttpProxyServerBootstrap |
withChainProxyManager(ChainedProxyManager chainProxyManager)
Specify a
ChainedProxyManager to use for chaining requests to
another proxy. |
HttpProxyServerBootstrap |
withFiltersSource(HttpFiltersSource filtersSource)
Specify a
HttpFiltersSource to use for filtering requests and/or
responses through this proxy. |
HttpProxyServerBootstrap |
withIdleConnectionTimeout(int idleConnectionTimeout)
Specify the timeout after which to disconnect idle connections, in
seconds.
|
HttpProxyServerBootstrap |
withListenOnAllAddresses(boolean listenOnAllAddresses)
Specify whether or not to listen on all interfaces.
|
HttpProxyServerBootstrap |
withManInTheMiddle(MitmManager mitmManager)
Specify an
MitmManager to use for making this proxy act as an SSL
man in the middle |
HttpProxyServerBootstrap |
withName(String name)
Give the server a name (used for naming threads, useful for logging).
|
HttpProxyServerBootstrap |
withPort(int port)
Listen for incoming connections on the given port.
|
HttpProxyServerBootstrap |
withProxyAuthenticator(ProxyAuthenticator proxyAuthenticator)
Specify a
ProxyAuthenticator to use for doing basic HTTP
authentication of clients. |
HttpProxyServerBootstrap |
withSslEngineSource(SslEngineSource sslEngineSource)
Specify an
SslEngineSource to use for encrypting inbound
connections. |
HttpProxyServerBootstrap |
withTransparent(boolean transparent)
Specify whether or not to run this proxy as a transparent proxy.
|
HttpProxyServerBootstrap |
withTransportProtocol(TransportProtocol transportProtocol)
Specify the
TransportProtocol to use for incoming connections. |
HttpProxyServerBootstrap |
withUseDnsSec(boolean useDnsSec)
Specify whether or not to use secure DNS lookups for outbound
connections.
|
HttpProxyServerBootstrap withName(String name)
Give the server a name (used for naming threads, useful for logging).
Default = LittleProxy
name - HttpProxyServerBootstrap withTransportProtocol(TransportProtocol transportProtocol)
Specify the TransportProtocol to use for incoming connections.
Default = TCP
transportProtocol - HttpProxyServerBootstrap withAddress(InetSocketAddress address)
Listen for incoming connections on the given address.
Default = [bound ip]:8080
address - HttpProxyServerBootstrap withPort(int port)
Listen for incoming connections on the given port.
Default = 8080
port - HttpProxyServerBootstrap withAllowLocalOnly(boolean allowLocalOnly)
Specify whether or not to only allow local connections.
Default = true
allowLocalOnly - HttpProxyServerBootstrap withListenOnAllAddresses(boolean listenOnAllAddresses)
Specify whether or not to listen on all interfaces.
Default = false
listenOnAllAddresses - HttpProxyServerBootstrap withSslEngineSource(SslEngineSource sslEngineSource)
Specify an SslEngineSource to use for encrypting inbound
connections.
Default = null
sslEngineSource - HttpProxyServerBootstrap withAuthenticateSslClients(boolean authenticateSslClients)
Specify whether or not to authenticate inbound SSL clients (only applies
if withSslEngineSource(SslEngineSource) has been set).
Default = true
authenticateSslClients - HttpProxyServerBootstrap withProxyAuthenticator(ProxyAuthenticator proxyAuthenticator)
Specify a ProxyAuthenticator to use for doing basic HTTP
authentication of clients.
Default = null
proxyAuthenticator - HttpProxyServerBootstrap withChainProxyManager(ChainedProxyManager chainProxyManager)
Specify a ChainedProxyManager to use for chaining requests to
another proxy.
Default = null
Note - This and withManInTheMiddle(MitmManager) are currently
mutually exclusive.
chainProxyManager - HttpProxyServerBootstrap withManInTheMiddle(MitmManager mitmManager)
Specify an MitmManager to use for making this proxy act as an SSL
man in the middle
Default = null
Note - This and withChainProxyManager(ChainedProxyManager) are
currently mutually exclusive.
mitmManager - HttpProxyServerBootstrap withFiltersSource(HttpFiltersSource filtersSource)
Specify a HttpFiltersSource to use for filtering requests and/or
responses through this proxy.
Default = null
filtersSource - HttpProxyServerBootstrap withUseDnsSec(boolean useDnsSec)
Specify whether or not to use secure DNS lookups for outbound connections.
Default = false
useDnsSec - HttpProxyServerBootstrap withTransparent(boolean transparent)
Specify whether or not to run this proxy as a transparent proxy.
Default = false
transparent - HttpProxyServerBootstrap withIdleConnectionTimeout(int idleConnectionTimeout)
Specify the timeout after which to disconnect idle connections, in seconds.
Default = 70
idleConnectionTimeout - HttpProxyServerBootstrap plusActivityTracker(ActivityTracker activityTracker)
Add an ActivityTracker for tracking activity in this proxy.
activityTracker - HttpProxyServer start()
Build and starts the server.
Copyright © 2009-2013 LittleShoot. All Rights Reserved.