Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

abort() - Method in interface org.littleshoot.proxy.HttpProxyServer
Stops the server and all related clones immediately, without waiting for traffic to stop.
abort() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
ActivityTracker - Interface in org.littleshoot.proxy
Interface for receiving information about activity in the proxy.
ActivityTrackerAdapter - Class in org.littleshoot.proxy
Adapter of ActivityTracker interface that provides default no-op implementations of all methods.
ActivityTrackerAdapter() - Constructor for class org.littleshoot.proxy.ActivityTrackerAdapter
 
addressFor(String, DefaultHttpProxyServer) - Static method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Build an InetSocketAddress for the given hostAndPort.
addVia(HttpMessage, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Adds the Via header to specify that the message has passed through the proxy.
authenticate(String, String) - Method in interface org.littleshoot.proxy.ProxyAuthenticator
Authenticates the user using the specified userName and password.

B

becameSaturated() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
When the ClientToProxyConnection becomes saturated, stop reading on all associated ProxyToServerConnections.
becameSaturated() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
becameWritable() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
When the ClientToProxyConnection becomes writable, resume reading on all associated ProxyToServerConnections.
becameWritable() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
become(ConnectionState) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Lifecycle
bootstrap() - Static method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Bootstrap a new DefaultHttpProxyServer starting from scratch.
bootstrapFromFile(String) - Static method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Bootstrap a new DefaultHttpProxyServer using defaults from the given file.
bytesReceivedFromClient(FlowContext, int) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that the proxy received bytes from the client.
bytesReceivedFromClient(FlowContext, int) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
bytesReceivedFromServer(FullFlowContext, int) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that the proxy received bytes from the server.
bytesReceivedFromServer(FullFlowContext, int) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
bytesSentToClient(FlowContext, int) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that the proxy sent bytes to the client.
bytesSentToClient(FlowContext, int) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
bytesSentToServer(FullFlowContext, int) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that the proxy attempted to send bytes to the server.
bytesSentToServer(FullFlowContext, int) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 

C

CategorizedThreadFactory - Class in org.littleshoot.proxy.impl
A ThreadFactory that adds LittleProxy-specific information to the threads' names.
CategorizedThreadFactory(String, String, int) - Constructor for class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
ChainedProxy - Interface in org.littleshoot.proxy
Encapsulates information needed to connect to a chained proxy.
ChainedProxyAdapter - Class in org.littleshoot.proxy
Convenience base class for implementations of ChainedProxy.
ChainedProxyAdapter() - Constructor for class org.littleshoot.proxy.ChainedProxyAdapter
 
ChainedProxyManager - Interface in org.littleshoot.proxy
Interface for classes that manage chained proxies.
clientConnected(InetSocketAddress) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that a client connected.
clientConnected(InetSocketAddress) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
clientDisconnected(InetSocketAddress, SSLSession) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that a client disconnected.
clientDisconnected(InetSocketAddress, SSLSession) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
clientSslEngineFor(HttpRequest, SSLSession) - Method in class org.littleshoot.proxy.extras.SelfSignedMitmManager
 
clientSslEngineFor(HttpRequest, SSLSession) - Method in interface org.littleshoot.proxy.MitmManager
Creates an SSLEngine for encrypting the client connection based on the given serverSslSession.
clientSSLHandshakeSucceeded(InetSocketAddress, SSLSession) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that a client's SSL handshake completed.
clientSSLHandshakeSucceeded(InetSocketAddress, SSLSession) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
ClientToProxyConnection - Class in org.littleshoot.proxy.impl
Represents a connection from a client to our proxy.
clientToProxyRequest(HttpObject) - Method in interface org.littleshoot.proxy.HttpFilters
Filters requests on their way from the client to the proxy.
clientToProxyRequest(HttpObject) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
clone() - Method in interface org.littleshoot.proxy.HttpProxyServer
Clone the existing server, with a port 1 higher and everything else the same.
clone() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
closeAllChannels(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Closes all channels opened by this proxy server.
connected() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
On connect of the client, start waiting for an initial HttpRequest.
connectionFailed(Throwable) - Method in interface org.littleshoot.proxy.ChainedProxy
Called to let us know that connecting to this proxy failed.
connectionFailed(Throwable) - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
connectionFailed(Throwable) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Called when the connection to the server or upstream chained proxy fails.
connectionSucceeded() - Method in interface org.littleshoot.proxy.ChainedProxy
Called to let us know that connecting to this proxy succeeded.
connectionSucceeded() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
copyMutableResponseFields(HttpResponse) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Make a copy of the response including all mutable fields.
createFullHttpResponse(HttpVersion, HttpResponseStatus, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Creates a new FullHttpResponse with the specified String as the body contents (encoded using UTF-8).
createFullHttpResponse(HttpVersion, HttpResponseStatus) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Creates a new FullHttpResponse with no body content
createFullHttpResponse(HttpVersion, HttpResponseStatus, String, ByteBuf, int) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Creates a new FullHttpResponse with the specified body.
ctx - Variable in class org.littleshoot.proxy.HttpFiltersAdapter
 

D

DEFAULT_INCOMING_ACCEPTOR_THREADS - Static variable in class org.littleshoot.proxy.impl.ServerGroup
The default number of threads to accept incoming requests from clients.
DEFAULT_INCOMING_WORKER_THREADS - Static variable in class org.littleshoot.proxy.impl.ServerGroup
The default number of threads to service incoming requests from clients.
DEFAULT_OUTGOING_WORKER_THREADS - Static variable in class org.littleshoot.proxy.impl.ServerGroup
The default number of threads to service outgoing requests to servers.
DefaultHostResolver - Class in org.littleshoot.proxy
Default implementation of HostResolver that just uses InetAddress.getByName(String).
DefaultHostResolver() - Constructor for class org.littleshoot.proxy.DefaultHostResolver
 
DefaultHttpProxyServer - Class in org.littleshoot.proxy.impl
Primary implementation of an HttpProxyServer.
disconnected() - Method in interface org.littleshoot.proxy.ChainedProxy
Called to let us know that we were disconnected.
disconnected() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
disconnected() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
On disconnect of the client, disconnect all server connections.
disconnected() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
DnsSecServerResolver - Class in org.littleshoot.proxy
 
DnsSecServerResolver() - Constructor for class org.littleshoot.proxy.DnsSecServerResolver
 
doStop(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Performs cleanup necessary to stop the server.
duplicateHttpResponse(HttpResponse) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Duplicates the status line and headers of an HttpResponse object.

E

exceptionCaught(Throwable) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
exceptionCaught(Throwable) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
extractBooleanDefaultFalse(Properties, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 
extractBooleanDefaultTrue(Properties, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 
extractInt(Properties, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 
extractInt(Properties, String, int) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 

F

FALLBACK_TO_DIRECT_CONNECTION - Static variable in class org.littleshoot.proxy.ChainedProxyAdapter
ChainedProxy that simply has the downstream proxy make a direct connection to the upstream server.
filterRequest(HttpObject) - Method in interface org.littleshoot.proxy.ChainedProxy
Filters requests on their way to the chained proxy.
filterRequest(HttpObject) - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
filterRequest(HttpRequest, ChannelHandlerContext) - Method in interface org.littleshoot.proxy.HttpFiltersSource
Return an HttpFilters object for this request if and only if we want to filter the request and/or its responses.
filterRequest(HttpRequest) - Method in class org.littleshoot.proxy.HttpFiltersSourceAdapter
 
filterRequest(HttpRequest, ChannelHandlerContext) - Method in class org.littleshoot.proxy.HttpFiltersSourceAdapter
 
firstLocalNonLoopbackIpv4Address() - Static method in class org.littleshoot.proxy.impl.NetworkUtils
Deprecated.
This method is no longer used by LittleProxy and may be removed in a future release.
FlowContext - Class in org.littleshoot.proxy
Encapsulates contextual information for flow information that's being reported to a ActivityTracker.
FlowContext(ClientToProxyConnection) - Constructor for class org.littleshoot.proxy.FlowContext
 
formatDate(Date) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Formats the given date according to the RFC 1123 pattern.
formatDate(Date, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Formats the given date according to the specified pattern.
FullFlowContext - Class in org.littleshoot.proxy
Extension of FlowContext that provides additional information (which we know after actually processing the request from the client).
FullFlowContext(ClientToProxyConnection, ProxyToServerConnection) - Constructor for class org.littleshoot.proxy.FullFlowContext
 

G

getAcceptorThreads() - Method in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
getActivityTrackers() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getAllCommaSeparatedHeaderValues(String, HttpMessage) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Retrieves all comma-separated values for headers with the specified name on the HttpMessage.
getAllEventLoops() - Method in class org.littleshoot.proxy.impl.ProxyThreadPools
Returns all event loops (acceptor and worker thread pools) in this pool.
getChainedProxy() - Method in class org.littleshoot.proxy.FullFlowContext
The chained proxy (if proxy chaining).
getChainedProxy() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
getChainedProxyAddress() - Method in interface org.littleshoot.proxy.ChainedProxy
Return the InetSocketAddress for connecting to the chained proxy.
getChainedProxyAddress() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
getChainedProxyAddress() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
getChainProxyManager() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getClientAddress() - Method in class org.littleshoot.proxy.FlowContext
The address of the client.
getClientAddress() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
getClientSslSession() - Method in class org.littleshoot.proxy.FlowContext
If using SSL, this returns the SSLSession on the client connection.
getClientToProxyAcceptorPool() - Method in class org.littleshoot.proxy.impl.ProxyThreadPools
 
getClientToProxyAcceptorPoolForTransport(TransportProtocol) - Method in class org.littleshoot.proxy.impl.ServerGroup
Retrieves the client-to-proxy acceptor thread pool for the specified protocol.
getClientToProxyWorkerPool() - Method in class org.littleshoot.proxy.impl.ProxyThreadPools
 
getClientToProxyWorkerPoolForTransport(TransportProtocol) - Method in class org.littleshoot.proxy.impl.ServerGroup
Retrieves the client-to-proxy acceptor worker pool for the specified protocol.
getClientToProxyWorkerThreads() - Method in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
getConnectTimeout() - Method in interface org.littleshoot.proxy.HttpProxyServer
Returns the maximum time to wait, in milliseconds, to connect to a server.
getConnectTimeout() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getFiltersSource() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getHostName() - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Attempts to resolve the local machine's hostname.
getHttpFiltersFromProxyServer(HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
getIdleConnectionTimeout() - Method in interface org.littleshoot.proxy.HttpProxyServer
 
getIdleConnectionTimeout() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getInitialRequest() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
getListenAddress() - Method in interface org.littleshoot.proxy.HttpProxyServer
Return the address on which this proxy is listening.
getListenAddress() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getLocalAddress() - Method in interface org.littleshoot.proxy.ChainedProxy
(Optional) ensure that the connection is opened from a specific local address (useful when doing NAT traversal).
getLocalAddress() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
getLocalAddress() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getLocalHost() - Static method in class org.littleshoot.proxy.impl.NetworkUtils
Deprecated.
This method is no longer used by LittleProxy and may be removed in a future release.
getMaxChunkSize() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getMaxHeaderSize() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getMaximumRequestBufferSizeInBytes() - Method in interface org.littleshoot.proxy.HttpFiltersSource
Indicate how many (if any) bytes to buffer for incoming HttpRequests.
getMaximumRequestBufferSizeInBytes() - Method in class org.littleshoot.proxy.HttpFiltersSourceAdapter
 
getMaximumResponseBufferSizeInBytes() - Method in interface org.littleshoot.proxy.HttpFiltersSource
Indicate how many (if any) bytes to buffer for incoming HttpResponses.
getMaximumResponseBufferSizeInBytes() - Method in class org.littleshoot.proxy.HttpFiltersSourceAdapter
 
getMaxInitialLineLength() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getMitmManager() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getProxyAlias() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getProxyAuthenticator() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getProxyToServerWorkerFor(TransportProtocol) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getProxyToServerWorkerPool() - Method in class org.littleshoot.proxy.impl.ProxyThreadPools
 
getProxyToServerWorkerPoolForTransport(TransportProtocol) - Method in class org.littleshoot.proxy.impl.ServerGroup
Retrieves the proxy-to-server worker thread pool for the specified protocol.
getProxyToServerWorkerThreads() - Method in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
getReadThrottle() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getRealm() - Method in interface org.littleshoot.proxy.ProxyAuthenticator
The realm value to be used in the request for proxy authentication ("Proxy-Authenticate" header).
getRemoteAddress() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
getServerHostAndPort() - Method in class org.littleshoot.proxy.FullFlowContext
The host and port for the server (i.e.
getServerHostAndPort() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
getServerResolver() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getSslContext() - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
getSslEngineSource() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getTransportProtocol() - Method in interface org.littleshoot.proxy.ChainedProxy
Tell LittleProxy what kind of TransportProtocol to use to communicate with the chained proxy.
getTransportProtocol() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
getTransportProtocol() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
State Management
getWriteThrottle() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 

H

hasUpstreamChainedProxy() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
HostResolver - Interface in org.littleshoot.proxy
Resolves host and port into an InetSocketAddress.
HttpFilters - Interface in org.littleshoot.proxy
Interface for objects that filter HttpObjects, including both requests and responses, and informs of different steps in request/response.
HttpFiltersAdapter - Class in org.littleshoot.proxy
Convenience base class for implementations of HttpFilters.
HttpFiltersAdapter(HttpRequest, ChannelHandlerContext) - Constructor for class org.littleshoot.proxy.HttpFiltersAdapter
 
HttpFiltersAdapter(HttpRequest) - Constructor for class org.littleshoot.proxy.HttpFiltersAdapter
 
HttpFiltersSource - Interface in org.littleshoot.proxy
Factory for HttpFilters.
HttpFiltersSourceAdapter - Class in org.littleshoot.proxy
Convenience base class for implementations of HttpFiltersSource.
HttpFiltersSourceAdapter() - Constructor for class org.littleshoot.proxy.HttpFiltersSourceAdapter
 
HttpProxyServer - Interface in org.littleshoot.proxy
Interface for the top-level proxy server class.
HttpProxyServerBootstrap - Interface in org.littleshoot.proxy
Configures and starts an HttpProxyServer.

I

isChunked(HttpObject) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
If an HttpObject is not the last chunk, then that means there are other chunks that will follow.
isCONNECT(HttpObject) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 
isContentAlwaysEmpty(HttpMessage) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 
isFalse(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the specified string is either "false" or "off" ignoring case.
isHEAD(HttpRequest) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the specified HttpRequest is a HEAD request.
isLastChunk(HttpObject) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
If an HttpObject implements the market interface LastHttpContent, it represents the last chunk of a transfer.
isMitming() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
isResponseSelfTerminating(HttpResponse) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the HTTP response from the server is expected to indicate its own message length/end-of-message.
isStopped() - Method in class org.littleshoot.proxy.impl.ServerGroup
 
isTrue(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the specified string is either "true" or "on" ignoring case.
isUdtAvailable() - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Determines if UDT is available on the classpath.

L

Launcher - Class in org.littleshoot.proxy
Launches a new HTTP proxy.
Launcher() - Constructor for class org.littleshoot.proxy.Launcher
 
lookupChainedProxies(HttpRequest, Queue<ChainedProxy>) - Method in interface org.littleshoot.proxy.ChainedProxyManager
Based on the given httpRequest, add any ChainedProxys to the list that should be used to process the request.

M

main(String...) - Static method in class org.littleshoot.proxy.Launcher
Starts the proxy from the command line.
MitmManager - Interface in org.littleshoot.proxy
MITMManagers encapsulate the logic required for letting LittleProxy act as a man in the middle for HTTPS requests.

N

NetworkUtils - Class in org.littleshoot.proxy.impl
Deprecated.
This class is no longer used by LittleProxy and may be removed in a future release.
NetworkUtils() - Constructor for class org.littleshoot.proxy.impl.NetworkUtils
Deprecated.
 
newSslEngine() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
newSslEngine(String, int) - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
newSslEngine() - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
newSslEngine(String, int) - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
newSslEngine() - Method in interface org.littleshoot.proxy.SslEngineSource
Returns an SSLEngine to use for a server connection from LittleProxy to the client.
newSslEngine(String, int) - Method in interface org.littleshoot.proxy.SslEngineSource
Returns an SSLEngine to use for a client connection from LittleProxy to the upstream server.
newThread(Runnable) - Method in class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
NOOP_FILTER - Static variable in class org.littleshoot.proxy.HttpFiltersAdapter
A default, stateless, no-op HttpFilters instance.

O

org.littleshoot.proxy - package org.littleshoot.proxy
 
org.littleshoot.proxy.extras - package org.littleshoot.proxy.extras
 
org.littleshoot.proxy.impl - package org.littleshoot.proxy.impl
 
originalRequest - Variable in class org.littleshoot.proxy.HttpFiltersAdapter
 

P

parseHostAndPort(HttpRequest) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Parses the host and port an HTTP request is being sent to.
parseHostAndPort(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Parses the host and port an HTTP request is being sent to.
plusActivityTracker(ActivityTracker) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Add an ActivityTracker for tracking activity in this proxy.
ProxyAuthenticator - Interface in org.littleshoot.proxy
Interface for objects that can authenticate someone for using our Proxy on the basis of a username and password.
ProxyThreadPools - Class in org.littleshoot.proxy.impl
Encapsulates the thread pools used by the proxy.
ProxyThreadPools(SelectorProvider, int, int, int, String, int) - Constructor for class org.littleshoot.proxy.impl.ProxyThreadPools
 
proxyToClientResponse(HttpObject) - Method in interface org.littleshoot.proxy.HttpFilters
Filters responses on their way from the proxy to the client.
proxyToClientResponse(HttpObject) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
ProxyToServerConnection - Class in org.littleshoot.proxy.impl
Represents a connection from our proxy to a server on the web.
proxyToServerConnectionFailed() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server connection has failed.
proxyToServerConnectionFailed() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerConnectionQueued() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server connection is in queue.
proxyToServerConnectionQueued() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerConnectionSSLHandshakeStarted() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server ssl handshake is initiating.
proxyToServerConnectionSSLHandshakeStarted() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerConnectionStarted() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server connection is initiating.
proxyToServerConnectionStarted() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerConnectionSucceeded(ChannelHandlerContext) - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server connection has succeeded.
proxyToServerConnectionSucceeded(ChannelHandlerContext) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerRequest(HttpObject) - Method in interface org.littleshoot.proxy.HttpFilters
Filters requests on their way from the proxy to the server.
proxyToServerRequest(HttpObject) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerRequestSending() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server request is being sent.
proxyToServerRequestSending() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerRequestSent() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that the HTTP request, including any content, has been sent.
proxyToServerRequestSent() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerResolutionFailed(String) - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server DNS resolution failed for the specified host and port.
proxyToServerResolutionFailed(String) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerResolutionStarted(String) - Method in interface org.littleshoot.proxy.HttpFilters
Filter DNS resolution from proxy to server.
proxyToServerResolutionStarted(String) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
proxyToServerResolutionSucceeded(String, InetSocketAddress) - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that proxy to server DNS resolution has happened.
proxyToServerResolutionSucceeded(String, InetSocketAddress) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
ProxyUtils - Class in org.littleshoot.proxy.impl
Utilities for the proxy.
ProxyUtils() - Constructor for class org.littleshoot.proxy.impl.ProxyUtils
 

R

read(Object) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Reading
readHTTPChunk(HttpContent) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
readHTTPChunk(HttpContent) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
readHTTPInitial(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Reading
readHTTPInitial(HttpResponse) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
readRaw(ByteBuf) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
readRaw(ByteBuf) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
registerChannel(Channel) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Register a new Channel with this server, for later closing.
registeredServers - Variable in class org.littleshoot.proxy.impl.ServerGroup
List of all servers registered to use this ServerGroup.
registerProxyServer(HttpProxyServer) - Method in class org.littleshoot.proxy.impl.ServerGroup
Registers the specified proxy server as a consumer of this server group.
requestReceivedFromClient(FlowContext, HttpRequest) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that proxy received an HttpRequest from the client.
requestReceivedFromClient(FlowContext, HttpRequest) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
requestSentToServer(FullFlowContext, HttpRequest) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that proxy attempted to send a request to the server.
requestSentToServer(FullFlowContext, HttpRequest) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
requiresEncryption() - Method in interface org.littleshoot.proxy.ChainedProxy
Implement this method to tell LittleProxy whether or not to encrypt connections to the chained proxy for the given request.
requiresEncryption() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
 
resolve(String, int) - Method in class org.littleshoot.proxy.DefaultHostResolver
 
resolve(String, int) - Method in class org.littleshoot.proxy.DnsSecServerResolver
 
resolve(String, int) - Method in interface org.littleshoot.proxy.HostResolver
 
responseReceivedFromServer(FullFlowContext, HttpResponse) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that the proxy received an HttpResponse from the server.
responseReceivedFromServer(FullFlowContext, HttpResponse) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
responseSentToClient(FlowContext, HttpResponse) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that the proxy sent a response to the client.
responseSentToClient(FlowContext, HttpResponse) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 

S

SelfSignedMitmManager - Class in org.littleshoot.proxy.extras
MitmManager that uses self-signed certs for everything.
SelfSignedMitmManager() - Constructor for class org.littleshoot.proxy.extras.SelfSignedMitmManager
 
SelfSignedSslEngineSource - Class in org.littleshoot.proxy.extras
Basic SslEngineSource for testing.
SelfSignedSslEngineSource(String, boolean, boolean) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
SelfSignedSslEngineSource(String) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
SelfSignedSslEngineSource(boolean) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
SelfSignedSslEngineSource(boolean, boolean) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
SelfSignedSslEngineSource() - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
serverBecameSaturated(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
When a server becomes saturated, we stop reading from the client.
serverBecameWriteable(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
When a server becomes writeable, we check to see if all servers are writeable and if they are, we resume reading.
serverConnectionFailed(ProxyToServerConnection, ConnectionState, Throwable) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
If the ProxyToServerConnection fails to complete its connection lifecycle successfully, this method is called to let us know about it.
serverConnectionFlowStarted(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Called when ProxyToServerConnection starts its connection flow.
serverConnectionSucceeded(ProxyToServerConnection, boolean) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
If the ProxyToServerConnection completes its connection lifecycle successfully, this method is called to let us know about it.
serverDisconnected(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
On disconnect of the server, track that we have one fewer connected servers and then disconnect the client if necessary.
ServerGroup - Class in org.littleshoot.proxy.impl
Manages thread pools for one or more proxy server instances.
ServerGroup(String, int, int, int) - Constructor for class org.littleshoot.proxy.impl.ServerGroup
Creates a new ServerGroup instance for a proxy.
serverSslEngine(String, int) - Method in class org.littleshoot.proxy.extras.SelfSignedMitmManager
 
serverSslEngine() - Method in class org.littleshoot.proxy.extras.SelfSignedMitmManager
 
serverSslEngine(String, int) - Method in interface org.littleshoot.proxy.MitmManager
Creates an SSLEngine for encrypting the server connection.
serverSslEngine() - Method in interface org.littleshoot.proxy.MitmManager
Creates an SSLEngine for encrypting the server connection.
serverToProxyResponse(HttpObject) - Method in interface org.littleshoot.proxy.HttpFilters
Filters responses on their way from the server to the proxy.
serverToProxyResponse(HttpObject) - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
serverToProxyResponseReceived() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that server to proxy response has been received.
serverToProxyResponseReceived() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
serverToProxyResponseReceiving() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that server to proxy response is being received.
serverToProxyResponseReceiving() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
serverToProxyResponseTimedOut() - Method in interface org.littleshoot.proxy.HttpFilters
Informs filter that a timeout occurred before the server response was received by the client.
serverToProxyResponseTimedOut() - Method in class org.littleshoot.proxy.HttpFiltersAdapter
 
setConnectTimeout(int) - Method in interface org.littleshoot.proxy.HttpProxyServer
Sets the maximum time to wait, in milliseconds, to connect to a server.
setConnectTimeout(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
setIdleConnectionTimeout(int) - Method in interface org.littleshoot.proxy.HttpProxyServer
 
setIdleConnectionTimeout(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
setMitming(boolean) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
setThrottle(long, long) - Method in interface org.littleshoot.proxy.HttpProxyServer
Set the read/write throttle bandwidths (in bytes/second) for this proxy.
setThrottle(long, long) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
shouldRemoveHopByHopHeader(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Determines if the specified header should be removed from the proxied response because it is a hop-by-hop header, as defined by the HTTP 1.1 spec in section 13.5.1.
splitCommaSeparatedHeaderValues(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Splits comma-separated header values into tokens.
SslEngineSource - Interface in org.littleshoot.proxy
Source for SSLEngines.
start() - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Build and starts the server.
stop() - Method in interface org.littleshoot.proxy.HttpProxyServer
Stops the server and all related clones.
stop() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
stripHost(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Strips the host from a URI string.

T

ThreadPoolConfiguration - Class in org.littleshoot.proxy.impl
Configuration object for the proxy's thread pools.
ThreadPoolConfiguration() - Constructor for class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
timedOut() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
timedOut() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
TransportProtocol - Enum in org.littleshoot.proxy
Enumeration of transport protocols supported by LittleProxy.

U

UnknownTransportProtocolException - Exception in org.littleshoot.proxy
This exception indicates that the system was asked to use a TransportProtocol that it didn't know how to handle.
UnknownTransportProtocolException(TransportProtocol) - Constructor for exception org.littleshoot.proxy.UnknownTransportProtocolException
 
unregisterProxyServer(HttpProxyServer, boolean) - Method in class org.littleshoot.proxy.impl.ServerGroup
Unregisters the specified proxy server from this server group.

V

valueOf(String) - Static method in enum org.littleshoot.proxy.TransportProtocol
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.littleshoot.proxy.TransportProtocol
Returns an array containing the constants of this enum type, in the order they are declared.

W

withAcceptorThreads(int) - Method in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
Set the number of acceptor threads to create.
withAddress(InetSocketAddress) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Listen for incoming connections on the given address.
withAllowLocalOnly(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to only allow local connections.
withAuthenticateSslClients(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to authenticate inbound SSL clients (only applies if HttpProxyServerBootstrap.withSslEngineSource(SslEngineSource) has been set).
withChainProxyManager(ChainedProxyManager) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a ChainedProxyManager to use for chaining requests to another proxy.
withClientToProxyWorkerThreads(int) - Method in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
Set the number of client-to-proxy worker threads to create.
withConnectTimeout(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the timeout for connecting to the upstream server on a new connection, in milliseconds.
withFiltersSource(HttpFiltersSource) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a HttpFiltersSource to use for filtering requests and/or responses through this proxy.
withIdleConnectionTimeout(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the timeout after which to disconnect idle connections, in seconds.
withListenOnAllAddresses(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Deprecated.
use HttpProxyServerBootstrap.withNetworkInterface(InetSocketAddress) to avoid listening on all local addresses
withManInTheMiddle(MitmManager) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify an MitmManager to use for making this proxy act as an SSL man in the middle
withMaxChunkSize(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
 
withMaxHeaderSize(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
 
withMaxInitialLineLength(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
 
withName(String) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Give the server a name (used for naming threads, useful for logging).
withNetworkInterface(InetSocketAddress) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
All outgoing-communication of the proxy-instance is goin' to be routed via the given network-interface
withPort(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Listen for incoming connections on the given port.
withProxyAlias(String) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Sets the alias to use when adding Via headers to incoming and outgoing HTTP messages.
withProxyAuthenticator(ProxyAuthenticator) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a ProxyAuthenticator to use for doing basic HTTP authentication of clients.
withProxyToServerWorkerThreads(int) - Method in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
Set the number of proxy-to-server worker threads to create.
withServerResolver(HostResolver) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a custom HostResolver for resolving server addresses.
withSslEngineSource(SslEngineSource) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify an SslEngineSource to use for encrypting inbound connections.
withThreadPoolConfiguration(ThreadPoolConfiguration) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Set the configuration parameters for the proxy's thread pools.
withThrottling(long, long) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the read and/or write bandwidth throttles for this proxy server.
withTransparent(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to run this proxy as a transparent proxy.
withTransportProtocol(TransportProtocol) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the TransportProtocol to use for incoming connections.
withUseDnsSec(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to use secure DNS lookups for outbound connections.
writeHttp(HttpObject) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2009–2016 LittleShoot. All rights reserved.