Skip navigation links
A B C D E F G H I J K 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
 
acceptorThreads - Variable in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
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
 
activityTrackers - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Track all ActivityTrackers for tracking proxying activity.
activityTrackers - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
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.
advance() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Advances the flow.
aggregateContentForFiltering(ChannelPipeline, int) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Enables decompression and aggregation of content, which is useful for certain types of filtering activity.
ALIAS - Static variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
allChannels - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Keep track of all channels created by this proxy server for later shutdown when the proxy is stopped.
allowLocalOnly - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
authenticate(String, String) - Method in interface org.littleshoot.proxy.ProxyAuthenticator
Authenticates the user using the specified userName and password.
authenticated - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
authenticateSslClients - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
authenticateSslClients - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
authenticationRequired(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Checks whether the given HttpRequest requires authentication.
availableChainedProxies - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 

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.ProxyConnection
Callback that's invoked if this connection becomes saturated.
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.ProxyConnection
Callback that's invoked when this connection becomes writeable again.
becameWritable() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
become(ConnectionState) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Udpates the current state to the given value.
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.
boundAddress - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
build() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
bytesRead(int) - Method in class org.littleshoot.proxy.impl.ProxyConnection.BytesReadMonitor
 
bytesReadMonitor - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Activity Tracking/Statistics We track statistics on bytes, requests and responses by adding handlers at the appropriate parts of the pipeline (see initChannelPipeline()).
BytesReadMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.BytesReadMonitor
 
bytesReadMonitor - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Activity Tracking/Statistics We track statistics on bytes, requests and responses by adding handlers at the appropriate parts of the pipeline (see initChannelPipeline()).
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
 
bytesWritten(int) - Method in class org.littleshoot.proxy.impl.ProxyConnection.BytesWrittenMonitor
 
bytesWrittenMonitor - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
BytesWrittenMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.BytesWrittenMonitor
 
bytesWrittenMonitor - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 

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
 
category - Variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
ChainedProxy - Interface in org.littleshoot.proxy
Encapsulates information needed to connect to a chained proxy.
chainedProxy - Variable in class org.littleshoot.proxy.FullFlowContext
 
chainedProxy - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
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.
chainProxyManager - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
chainProxyManager - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
channel - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 
channelActive(ChannelHandlerContext) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Only once the Netty Channel is active to we recognize the ProxyConnection as connected.
channelInactive(ChannelHandlerContext) - Method in class org.littleshoot.proxy.impl.ProxyConnection
As soon as the Netty Channel is inactive, we recognize the ProxyConnection as disconnected.
channelRead(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection.BytesReadMonitor
 
channelRead(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection.RequestReadMonitor
 
channelRead(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection.ResponseReadMonitor
 
channelRead0(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Adapting the Netty API
channelRegistered(ChannelHandlerContext) - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
channelWritabilityChanged(ChannelHandlerContext) - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
checkTrueOrFalse(String, String, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
 
clientAddress - Variable in class org.littleshoot.proxy.FlowContext
 
clientConnected(InetSocketAddress) - Method in interface org.littleshoot.proxy.ActivityTracker
Record that a client connected.
clientConnected(InetSocketAddress) - Method in class org.littleshoot.proxy.ActivityTrackerAdapter
 
clientConnection - Variable in class org.littleshoot.proxy.impl.ConnectionFlow
 
clientConnection - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
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
 
clientSslSession - Variable in class org.littleshoot.proxy.FlowContext
 
clientSslSession - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
clientToProxyAcceptorPool - Variable in class org.littleshoot.proxy.impl.ProxyThreadPools
These EventLoopGroups accept incoming connections to the proxies.
clientToProxyAcceptorThreads - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
ClientToProxyConnection - Class in org.littleshoot.proxy.impl
Represents a connection from a client to our proxy.
ClientToProxyConnection(DefaultHttpProxyServer, SslEngineSource, boolean, ChannelPipeline, GlobalTrafficShapingHandler) - Constructor for class org.littleshoot.proxy.impl.ClientToProxyConnection
 
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
 
clientToProxyWorkerPool - Variable in class org.littleshoot.proxy.impl.ProxyThreadPools
These EventLoopGroups process incoming requests to the proxies.
clientToProxyWorkerThreads - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
clientToProxyWorkerThreads - Variable in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
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.
closeChannel(Promise<Void>) - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
closeConnectionsAfterWriteIfNecessary(ProxyToServerConnection, HttpRequest, HttpResponse, HttpObject) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
This method takes care of closing client to proxy and/or proxy to server connections after finishing a write.
COMMA_SEPARATED_HEADER_VALUE_SPLITTER - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
Splits comma-separated header values (such as Connection) into their individual tokens.
connectAndWrite(HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Configures the connection to the upstream server and begins the ConnectionFlow.
ConnectChannel - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Opens the socket connection.
connected() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
On connect of the client, start waiting for an initial HttpRequest.
connected() - Method in class org.littleshoot.proxy.impl.ProxyConnection
This method is called as soon as the underlying Channel is connected.
connection - Variable in class org.littleshoot.proxy.impl.ConnectionFlowStep
 
connection - Variable in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
CONNECTION_ESTABLISHED - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
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.
connectionFailedUnrecoverably(HttpRequest, ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
ConnectionFlow - Class in org.littleshoot.proxy.impl
Coordinates the various steps involved in establishing a connection, such as establishing a socket connection, SSL handshaking, HTTP CONNECT request processing, and so on.
ConnectionFlow(ClientToProxyConnection, ProxyToServerConnection, Object) - Constructor for class org.littleshoot.proxy.impl.ConnectionFlow
Construct a new ConnectionFlow for the given client and server connections.
connectionFlow - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Encapsulates the flow for establishing a connection, which can vary depending on how things are configured.
ConnectionFlowStep - Class in org.littleshoot.proxy.impl
Represents a phase in a ConnectionFlow.
ConnectionFlowStep(ProxyConnection, ConnectionState) - Constructor for class org.littleshoot.proxy.impl.ConnectionFlowStep
Construct a new step in a connection flow.
ConnectionState - Enum in org.littleshoot.proxy.impl
 
ConnectionState(boolean) - Constructor for enum org.littleshoot.proxy.impl.ConnectionState
 
ConnectionState() - Constructor for enum org.littleshoot.proxy.impl.ConnectionState
 
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
 
connectionSucceeded(boolean) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Do all the stuff that needs to be done after our ConnectionFlow has succeeded.
connectLock - Variable in class org.littleshoot.proxy.impl.ConnectionFlow
 
connectLock - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
While we're in the process of connecting, it's possible that we'll receive a new message to write.
connectTimeout - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
connectTimeout - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
contentWritten(HttpContent) - Method in class org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
Invoked immediately after an HttpContent has been sent.
copy(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Copy the given HttpRequest verbatim.
copyMutableResponseFields(HttpResponse) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Make a copy of the response including all mutable fields.
create(DefaultHttpProxyServer, ClientToProxyConnection, String, HttpFilters, HttpRequest, GlobalTrafficShapingHandler) - Static method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Create a new ProxyToServerConnection.
createGlobalTrafficShapingHandler(TransportProtocol, long, long) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Creates a new GlobalTrafficShapingHandler for this HttpProxyServer, using this proxy's proxyToServerEventLoop.
ctx - Variable in class org.littleshoot.proxy.HttpFiltersAdapter
 
ctx - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 
currentFilters - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
The current filters to apply to incoming requests/chunks.
currentFilters - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
The filters to apply to response/chunks received from server.
currentHttpRequest - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
While we're doing a chunked transfer, this keeps track of the HttpRequest to which we're responding.
currentHttpResponse - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
While we're doing a chunked transfer, this keeps track of the initial HttpResponse object for our transfer (which is useful for its headers).
currentRequest - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
The current HTTP request that this connection is currently servicing.
currentServerConnection - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
This is the current server connection that we're using while transferring chunked data.
currentState - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 
currentStep - Variable in class org.littleshoot.proxy.impl.ConnectionFlow
 

D

debug(String, Object...) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
debug(String, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
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.
DefaultHttpProxyServer(ServerGroup, TransportProtocol, InetSocketAddress, SslEngineSource, boolean, ProxyAuthenticator, ChainedProxyManager, MitmManager, HttpFiltersSource, boolean, int, Collection<ActivityTracker>, int, HostResolver, long, long, InetSocketAddress, String) - Constructor for class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Creates a new proxy server.
DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap - Class in org.littleshoot.proxy.impl
 
DefaultHttpProxyServerBootstrap() - Constructor for class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
DefaultHttpProxyServerBootstrap(ServerGroup, TransportProtocol, InetSocketAddress, SslEngineSource, boolean, ProxyAuthenticator, ChainedProxyManager, MitmManager, HttpFiltersSource, boolean, int, Collection<ActivityTracker>, int, HostResolver, long, long, InetSocketAddress, String) - Constructor for class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
DefaultHttpProxyServerBootstrap(Properties) - Constructor for class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
determineListenAddress() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
disableSni - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Disables SNI when initializing connection flow in ProxyToServerConnection.initializeConnectionFlow().
disconnect() - Method in class org.littleshoot.proxy.impl.ProxyConnection
Disconnects.
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.ProxyConnection
This method is called as soon as the underlying Channel becomes disconnected.
disconnected() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
dispatch - Variable in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
DnsSecServerResolver - Class in org.littleshoot.proxy
 
DnsSecServerResolver() - Constructor for class org.littleshoot.proxy.DnsSecServerResolver
 
doLog(int, String, Object[], Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger.LocationAwareLogggerDispatch
 
doLog(int, String, Object[], Throwable) - Method in interface org.littleshoot.proxy.impl.ProxyConnectionLogger.LogDispatch
 
doLog(int, String, Object[], Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger.LoggerDispatch
 
doProcessCurrentStep(ProxyConnectionLogger) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Does the work of processing the current step, checking the result and handling success/failure.
doReadHTTPInitial(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Reads an HttpRequest.
doStart() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
doStop(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
Performs cleanup necessary to stop the server.
doWrite(Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
duplicateHttpResponse(HttpResponse) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Duplicates the status line and headers of an HttpResponse object.

E

encrypt(SSLEngine, boolean) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Encrypts traffic on this connection with SSL/TLS.
encrypt(ChannelPipeline, SSLEngine, boolean) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Encrypts traffic on this connection with SSL/TLS.
EncryptChannel(SSLEngine) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Encrypts the channel using the provided SSLEngine.
error(String, Object...) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
error(String, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
exceptionCaught(Throwable) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
exceptionCaught(Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Override this to handle exceptions that occurred during asynchronous processing on the Channel.
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
exceptionCaught(Throwable) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
execute() - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
Implement this method to actually do the work involved in this step of the flow.
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

fail(Throwable) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Called when the flow fails at some ConnectionFlowStep.
fail() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Like ConnectionFlow.fail(Throwable) but with no cause.
FALLBACK_PROXY_ALIAS - Static variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
The proxy alias to use in the Via header if no explicit proxy alias is specified and the hostname of the local machine cannot be resolved.
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
 
filtersSource - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
filtersSource - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
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.
fixHttpVersionHeaderIfNecessary(HttpResponse) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Chunked encoding is an HTTP 1.1 feature, but sometimes we get a chunked response that reports its HTTP version as 1.0.
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
 
flowContext() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
forceDisconnect(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
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.
fqcn - Variable in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
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
 
fullMessage(String) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 

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
 
getConnection() - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
 
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
 
getCurrentState() - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
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.ProxyConnection
Request the ProxyServer for Filters.
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.
getLOG() - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
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
 
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
 
getSslEngine() - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
getSslEngineSource() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
getState() - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
 
getThreadPoolsForProtocol(TransportProtocol) - Method in class org.littleshoot.proxy.impl.ServerGroup
Retrieves the ProxyThreadPools for the specified transport protocol.
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
 
globalTrafficShapingHandler - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
globalTrafficShapingHandler - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
GMT - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
 

H

hasUpstreamChainedProxy() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
HeadAwareHttpResponseDecoder(int, int, int) - Constructor for class org.littleshoot.proxy.impl.ProxyToServerConnection.HeadAwareHttpResponseDecoder
 
HostResolver - Interface in org.littleshoot.proxy
Resolves host and port into an InetSocketAddress.
HTTP_PREFIX - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
 
HTTP_SCHEME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Used for case-insensitive comparisons when checking direct proxy request.
HTTPCONNECTWithChainedProxy - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Writes the HTTP CONNECT to the server and waits for a 200 response.
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

identifyCurrentRequest() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
An HTTP response is associated with a single request, so we can pop the correct request off the queue.
identifyHostAndPort(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Identify the host and port for a request.
idleConnectionTimeout - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
idleConnectionTimeout - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
incomingAcceptorThreads - Variable in class org.littleshoot.proxy.impl.ServerGroup
 
incomingWorkerThreads - Variable in class org.littleshoot.proxy.impl.ServerGroup
 
info(String, Object...) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
info(String, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
initChannelPipeline(ChannelPipeline) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Initialize the for the client to proxy channel.
initChannelPipeline(ChannelPipeline, HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Initialize our ChannelPipeline.
initializeConnectionFlow() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
This method initializes our ConnectionFlow based on however this connection has been configured.
initializeKeyStore() - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
initializeSSLContext() - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
initialRequest - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
This is the initial request received prior to connecting.
is(ConnectionState) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Utility for checking current state.
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
 
isConnecting() - Method in class org.littleshoot.proxy.impl.ProxyConnection
If this connection is currently in the process of going through a ConnectionFlow, this will return true.
isContentAlwaysEmpty(HttpMessage) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection.HeadAwareHttpResponseDecoder
 
isContentAlwaysEmpty(HttpMessage) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the HTTP message cannot contain an entity body, according to the HTTP spec.
isDisconnectingOrDisconnected() - Method in enum org.littleshoot.proxy.impl.ConnectionState
Indicates whether this ConnectionState is no longer waiting for messages and is either in the process of disconnecting or is already disconnected.
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.
isHead(HttpRequest) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the request is an HTTP 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
 
isPartOfConnectionFlow() - Method in enum org.littleshoot.proxy.impl.ConnectionState
Indicates whether this ConnectionState corresponds to a step in a ConnectionFlow.
isRequestToOriginServer(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Returns true if the specified request is a request to an origin server, rather than to a proxy server.
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.
isSaturated() - Method in class org.littleshoot.proxy.impl.ProxyConnection
Indicates whether or not this connection is saturated (i.e.
isStopped() - Method in class org.littleshoot.proxy.impl.ServerGroup
 
issuedRequests - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Keeps track of HttpRequests that have been issued so that we can associate them with responses that we get back
isTransparent() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
isTrue(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Returns true if the specified string is either "true" or "on" ignoring case.
isTunneling() - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
isUdtAvailable() - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Determines if UDT is available on the classpath.

J

jvmShutdownHook - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
JVM shutdown hook to shutdown this proxy server.

K

keyStoreFile - Variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 

L

lastReadTime - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 
Launcher - Class in org.littleshoot.proxy
Launches a new HTTP proxy.
Launcher() - Constructor for class org.littleshoot.proxy.Launcher
 
localAddress - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
localAddress - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
localAddress - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
LocationAwareLogggerDispatch(LocationAwareLogger) - Constructor for class org.littleshoot.proxy.impl.ProxyConnectionLogger.LocationAwareLogggerDispatch
 
LOG - Static variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
log - Static variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
LOG - Variable in class org.littleshoot.proxy.impl.ConnectionFlowStep
 
LOG - Static variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
LOG - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 
log - Variable in class org.littleshoot.proxy.impl.ProxyConnectionLogger.LocationAwareLogggerDispatch
 
log(int, String, Object...) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
log(int, String, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
LOG - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
 
log - Static variable in class org.littleshoot.proxy.impl.ServerGroup
 
LOG - Static variable in class org.littleshoot.proxy.Launcher
 
logger - Variable in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
LoggerDispatch() - Constructor for class org.littleshoot.proxy.impl.ProxyConnectionLogger.LoggerDispatch
 
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.
LOWERCASE_TRANSFER_ENCODING_HEADER - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Used for case-insensitive comparisons when parsing Connection header values.

M

main(String...) - Static method in class org.littleshoot.proxy.Launcher
Starts the proxy from the command line.
MINIMUM_RECV_BUFFER_SIZE_BYTES - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Minimum size of the adaptive recv buffer when throttling is enabled.
MitmEncryptClientChannel - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Encrypts the client channel based on our server SSLSession.
mitming - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Tracks whether or not this ClientToProxyConnection is current doing MITM.
mitmManager - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
mitmManager - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
MitmManager - Interface in org.littleshoot.proxy
MITMManagers encapsulate the logic required for letting LittleProxy act as a man in the middle for HTTPS requests.
modifyRequestHeadersToReflectProxying(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
If and only if our proxy is not running in transparent mode, modify the request headers to reflect that it was proxied.
modifyResponseHeadersToReflectProxying(HttpResponse) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
If and only if our proxy is not running in transparent mode, modify the response headers to reflect that it was proxied.

N

name - Variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
name - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
name - Variable in class org.littleshoot.proxy.impl.ServerGroup
A name for this ServerGroup to use in naming threads.
nativeCall(String...) - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
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.
notifyThreadsWaitingForConnection() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Once we've finished recording our connection and written our initial request, we can notify anyone who is waiting on the connection that it's okay to proceed.
numberOfCurrentlyConnectedServers - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Keep track of how many servers are currently connected.
numberOfCurrentlyConnectingServers - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Keep track of how many servers are currently in the process of connecting.
numberOfReusedServerConnections - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Keep track of how many times we were able to reuse a connection.

O

onSuccess(ConnectionFlow) - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
When the flow determines that this step was successful, it calls into this method.
OPTION_DNSSEC - Static variable in class org.littleshoot.proxy.Launcher
 
OPTION_HELP - Static variable in class org.littleshoot.proxy.Launcher
 
OPTION_MITM - Static variable in class org.littleshoot.proxy.Launcher
 
OPTION_NIC - Static variable in class org.littleshoot.proxy.Launcher
 
OPTION_PORT - Static variable in class org.littleshoot.proxy.Launcher
 
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
 
outgoingWorkerThreads - Variable in class org.littleshoot.proxy.impl.ServerGroup
 

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.
partOfConnectionFlow - Variable in enum org.littleshoot.proxy.impl.ConnectionState
 
PASSWORD - Static variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
PATTERN_RFC1123 - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
Date format pattern used to parse HTTP date headers in RFC 1123 format.
plusActivityTracker(ActivityTracker) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Add an ActivityTracker for tracking activity in this proxy.
plusActivityTracker(ActivityTracker) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
pollLog4JConfigurationFileIfAvailable() - Static method in class org.littleshoot.proxy.Launcher
 
port - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
printHelp(Options, String) - Static method in class org.littleshoot.proxy.Launcher
 
processCurrentStep() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Process the current ConnectionFlowStep.
PROTOCOL - Static variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
protocolThreadPools - Variable in class org.littleshoot.proxy.impl.ServerGroup
A mapping of TransportProtocols to their initialized ProxyThreadPools.
proxyAlias - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
proxyAlias - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
The alias or pseudonym for this proxy, used when adding the Via header.
proxyAuthenticator - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
proxyAuthenticator - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
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.
ProxyConnection<I extends io.netty.handler.codec.http.HttpObject> - Class in org.littleshoot.proxy.impl
Base class for objects that represent a connection to/from our proxy.
ProxyConnection(ConnectionState, DefaultHttpProxyServer, boolean) - Constructor for class org.littleshoot.proxy.impl.ProxyConnection
Construct a new ProxyConnection.
ProxyConnection.BytesReadMonitor - Class in org.littleshoot.proxy.impl
Utility handler for monitoring bytes read on this connection.
ProxyConnection.BytesWrittenMonitor - Class in org.littleshoot.proxy.impl
Utility handler for monitoring bytes written on this connection.
ProxyConnection.RequestReadMonitor - Class in org.littleshoot.proxy.impl
Utility handler for monitoring requests read on this connection.
ProxyConnection.RequestWrittenMonitor - Class in org.littleshoot.proxy.impl
Utility handler for monitoring requests written on this connection.
ProxyConnection.ResponseReadMonitor - Class in org.littleshoot.proxy.impl
Utility handler for monitoring responses read on this connection.
ProxyConnection.ResponseWrittenMonitor - Class in org.littleshoot.proxy.impl
Utility handler for monitoring responses written on this connection.
ProxyConnectionLogger - Class in org.littleshoot.proxy.impl
A helper class that logs messages for ProxyConnections.
ProxyConnectionLogger(ProxyConnection) - Constructor for class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
ProxyConnectionLogger.LocationAwareLogggerDispatch - Class in org.littleshoot.proxy.impl
Dispatcher for a LocationAwareLogger.
ProxyConnectionLogger.LogDispatch - Interface in org.littleshoot.proxy.impl
 
ProxyConnectionLogger.LoggerDispatch - Class in org.littleshoot.proxy.impl
Fallback dispatch if a LocationAwareLogger is not available from the SLF4J LoggerFactory.
proxyServer - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 
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.
ProxyToServerConnection(DefaultHttpProxyServer, ClientToProxyConnection, String, ChainedProxy, Queue<ChainedProxy>, HttpFilters, GlobalTrafficShapingHandler) - Constructor for class org.littleshoot.proxy.impl.ProxyToServerConnection
 
ProxyToServerConnection.HeadAwareHttpResponseDecoder - Class in org.littleshoot.proxy.impl
Responses to HEAD requests aren't supposed to have content, but Netty doesn't know that any given response is to a HEAD request, so it needs to be told that there's no content so that it doesn't hang waiting for it.
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
 
proxyToServerWorkerPool - Variable in class org.littleshoot.proxy.impl.ProxyThreadPools
These EventLoopGroups are used for making outgoing connections to servers.
proxyToServerWorkerThreads - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
proxyToServerWorkerThreads - Variable in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
 
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.ConnectionFlow
While we're in the process of connecting, any messages read by the ProxyToServerConnection are passed to this method, which passes it on to ConnectionFlowStep.read(ConnectionFlow, Object) for the current ConnectionFlowStep.
read(ConnectionFlow, Object) - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
Any messages that are read from the underlying connection while we're at this step of the connection flow are passed to this method.
read(Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Read is invoked automatically by Netty as messages arrive on the socket.
read(Object) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Reading
readHTTP(HttpObject) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Handles reading HttpObjects.
readHTTPChunk(HttpContent) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
readHTTPChunk(HttpContent) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Implement this to handle reading a chunk in a chunked transfer.
readHTTPChunk(HttpContent) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
readHTTPInitial(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Reading
readHTTPInitial(I) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Implement this to handle reading the initial object (e.g.
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.ProxyConnection
Implement this to handle reading a raw buffer as they are used in HTTP tunneling.
readRaw(ByteBuf) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
readThrottleBytesPerSecond - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
recordClientConnected() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
recordClientDisconnected() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
recordClientSSLHandshakeSucceeded() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
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.
rememberCurrentResponse(HttpResponse) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Keeps track of the current HttpResponse so that we can associate its headers with future related chunks for this same transfer.
remoteAddress - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
removeSDCHEncoding(HttpHeaders) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Remove sdch from encodings we accept since we can't decode it.
requestedAddress - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
requestedAddress - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
requestRead(HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyConnection.RequestReadMonitor
 
requestReadMonitor - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
RequestReadMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.RequestReadMonitor
 
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
 
requestWriting(HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
Invoked immediately before an HttpRequest is written.
requestWritten(HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
Invoked immediately after an HttpRequest has been sent.
RequestWrittenMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
 
requestWrittenMonitor - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
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
 
resetConnectionForRetry() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Convenience method to prepare to retry this connection.
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
 
respond(ProxyToServerConnection, HttpFilters, HttpRequest, HttpResponse, HttpObject) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Send a response to the client.
RespondCONNECTSuccessful - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Tells the Client that its HTTP CONNECT request was successful.
respondWith(HttpObject) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Respond to the client with the given HttpObject.
respondWithShortCircuitResponse(HttpResponse) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Responds to the client with the specified "short-circuit" response.
responseFor(HttpVersion, HttpResponseStatus, String) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Factory for DefaultFullHttpResponses.
responseFor(HttpVersion, HttpResponseStatus, ByteBuf, int) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Factory for DefaultFullHttpResponses.
responseFor(HttpVersion, HttpResponseStatus) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Factory for DefaultFullHttpResponses.
responseRead(HttpResponse) - Method in class org.littleshoot.proxy.impl.ProxyConnection.ResponseReadMonitor
 
ResponseReadMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.ResponseReadMonitor
 
responseReadMonitor - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
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
 
responseWritten(HttpResponse) - Method in class org.littleshoot.proxy.impl.ProxyConnection.ResponseWrittenMonitor
 
responseWrittenMonitor - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
ResponseWrittenMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.ResponseWrittenMonitor
 
resumeReading() - Method in class org.littleshoot.proxy.impl.ProxyConnection
Call this to resume reading.
resumeReadingIfNecessary() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
runsAsSslClient - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 

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 - Variable in 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
 
sendCerts - Variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
serialVersionUID - Static variable in exception org.littleshoot.proxy.UnknownTransportProtocolException
 
SERVER_REGISTRATION_LOCK - Variable in class org.littleshoot.proxy.impl.ServerGroup
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.
serverConnection - Variable in class org.littleshoot.proxy.impl.ConnectionFlow
 
serverConnection - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
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.
serverConnectionsByHostAndPort - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
Keep track of all ProxyToServerConnections by host+port.
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 - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
serverGroup - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
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.
serverGroupCount - Static variable in class org.littleshoot.proxy.impl.ServerGroup
Global counter for the serverGroupId.
serverGroupId - Variable in class org.littleshoot.proxy.impl.ServerGroup
The ID of this server group.
serverHostAndPort - Variable in class org.littleshoot.proxy.FullFlowContext
 
serverHostAndPort - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
serverResolver - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
serverResolver - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
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
 
setupConnectionParameters() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Set up our connection parameters based on server address and chained proxies.
SHOULD_NOT_PROXY_HOP_BY_HOP_HEADERS - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
Hop-by-hop headers that should be removed when proxying, as defined by the HTTP 1.1 spec, section 13.5.1 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.5.1).
shouldCloseClientConnection(HttpRequest, HttpResponse, HttpObject) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Determine whether or not the client connection should be closed.
shouldCloseServerConnection(HttpRequest, HttpResponse, HttpObject) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Determines if the remote connection should be closed based on the request and response pair.
shouldExecuteOnEventLoop() - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
Indicates whether or not this step should be executed on the channel's event loop.
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.
shouldSuppressInitialRequest() - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
Indicates whether or not to suppress the initial request.
shutdown(boolean) - Method in class org.littleshoot.proxy.impl.ServerGroup
Shuts down all event loops owned by this server group.
splitCommaSeparatedHeaderValues(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Splits comma-separated header values into tokens.
sslContext - Variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
sslEngine - Variable in class org.littleshoot.proxy.impl.ProxyConnection
If using encryption, this holds our SSLEngine.
sslEngineSource - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
sslEngineSource - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
SslEngineSource - Interface in org.littleshoot.proxy
Source for SSLEngines.
start() - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Build and starts the server.
start() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Starts the connection flow, notifying the ClientToProxyConnection that we've started.
start() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
start() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
StartTunneling - Variable in class org.littleshoot.proxy.impl.ProxyConnection
Enables tunneling on this connection by dropping the HTTP related encoders and decoders, as well as idle timers.
state - Variable in class org.littleshoot.proxy.impl.ConnectionFlowStep
 
steps - Variable in class org.littleshoot.proxy.impl.ConnectionFlow
 
stop() - Method in interface org.littleshoot.proxy.HttpProxyServer
Stops the server and all related clones.
stop() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
stopped - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
True when the proxy has already been stopped by calling DefaultHttpProxyServer.stop() or DefaultHttpProxyServer.abort().
stopped - Variable in class org.littleshoot.proxy.impl.ServerGroup
True when this ServerGroup is stopped.
stopReading() - Method in class org.littleshoot.proxy.impl.ProxyConnection
Call this to stop reading.
stripConnectionTokens(HttpHeaders) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
RFC2616 Section 14.10 HTTP/1.1 proxies MUST parse the Connection header field before a message is forwarded and, for each connection-token in this field, remove any header field(s) from the message with the same name as the connection-token.
stripHopByHopHeaders(HttpHeaders) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Removes all headers that should not be forwarded.
stripHost(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
Strips the host from a URI string.
succeed() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Called when the flow is complete and successful.
suppressInitialRequest - Variable in class org.littleshoot.proxy.impl.ConnectionFlow
 
switchProxyConnectionHeader(HttpHeaders) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Switch the de-facto standard "Proxy-Connection" header to "Connection" when we pass it along to the remote host.

T

then(ConnectionFlowStep) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
Add a ConnectionFlowStep to this flow.
THREAD_POOL_INIT_LOCK - Variable in class org.littleshoot.proxy.impl.ServerGroup
Lock for initializing any transport protocols.
threadCount - Variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
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.ProxyConnection
This method is called when the underlying Channel times out due to an idle timeout.
timedOut() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
toString() - Method in class org.littleshoot.proxy.impl.ConnectionFlowStep
 
TRAFFIC_SHAPING_CHECK_INTERVAL_MS - Static variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
The interval in ms at which the GlobalTrafficShapingHandler will run to compute and throttle the proxy-to-server bandwidth.
trafficHandler - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
Limits bandwidth when throttling is enabled.
transparent - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
transparent - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
TRANSPORT_PROTOCOL_SELECTOR_PROVIDERS - Static variable in class org.littleshoot.proxy.impl.ServerGroup
A mapping of selector providers to transport protocols.
transportProtocol - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
transportProtocol - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
 
transportProtocol - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
TransportProtocol - Enum in org.littleshoot.proxy
Enumeration of transport protocols supported by LittleProxy.
TransportProtocol() - Constructor for enum org.littleshoot.proxy.TransportProtocol
 
trustAllServers - Variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
 
tunneling - Variable in class org.littleshoot.proxy.impl.ProxyConnection
 

U

UNCAUGHT_EXCEPTION_HANDLER - Static variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
Exception handler for proxy threads.
uniqueServerGroupId - Variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
 
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.
userEventTriggered(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
We're looking for IdleStateEvents to see if we need to disconnect.

V

valueOf(String) - Static method in enum org.littleshoot.proxy.impl.ConnectionState
Returns the enum constant of this type with the specified name.
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.impl.ConnectionState
Returns an array containing the constants of this enum type, in the order they are declared.
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

warn(String, Object...) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
warn(String, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnectionLogger
 
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.
withAddress(InetSocketAddress) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withAllowLocalOnly(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to only allow local connections.
withAllowLocalOnly(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
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).
withAuthenticateSslClients(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withChainProxyManager(ChainedProxyManager) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a ChainedProxyManager to use for chaining requests to another proxy.
withChainProxyManager(ChainedProxyManager) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
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.
withConnectTimeout(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withFiltersSource(HttpFiltersSource) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a HttpFiltersSource to use for filtering requests and/or responses through this proxy.
withFiltersSource(HttpFiltersSource) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withIdleConnectionTimeout(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the timeout after which to disconnect idle connections, in seconds.
withIdleConnectionTimeout(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withListenOnAllAddresses(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Deprecated.
use HttpProxyServerBootstrap.withNetworkInterface(InetSocketAddress) to avoid listening on all local addresses
withListenOnAllAddresses(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
Deprecated.
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
withManInTheMiddle(MitmManager) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withName(String) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Give the server a name (used for naming threads, useful for logging).
withName(String) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
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
withNetworkInterface(InetSocketAddress) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withPort(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Listen for incoming connections on the given port.
withPort(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withProxyAlias(String) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Sets the alias to use when adding Via headers to incoming and outgoing HTTP messages.
withProxyAlias(String) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withProxyAuthenticator(ProxyAuthenticator) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify a ProxyAuthenticator to use for doing basic HTTP authentication of clients.
withProxyAuthenticator(ProxyAuthenticator) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
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.
withServerResolver(HostResolver) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withSslEngineSource(SslEngineSource) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify an SslEngineSource to use for encrypting inbound connections.
withSslEngineSource(SslEngineSource) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withThreadPoolConfiguration(ThreadPoolConfiguration) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Set the configuration parameters for the proxy's thread pools.
withThreadPoolConfiguration(ThreadPoolConfiguration) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withThrottling(long, long) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the read and/or write bandwidth throttles for this proxy server.
withThrottling(long, long) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withTransparent(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to run this proxy as a transparent proxy.
withTransparent(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withTransportProtocol(TransportProtocol) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify the TransportProtocol to use for incoming connections.
withTransportProtocol(TransportProtocol) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
withUseDnsSec(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
Specify whether or not to use secure DNS lookups for outbound connections.
withUseDnsSec(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class org.littleshoot.proxy.impl.ProxyConnection.BytesWrittenMonitor
 
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
 
write(ChannelHandlerContext, Object, ChannelPromise) - Method in class org.littleshoot.proxy.impl.ProxyConnection.ResponseWrittenMonitor
 
write(Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
This method is called by users of the ProxyConnection to send stuff out over the socket.
write(Object, HttpFilters) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
Like ProxyToServerConnection.write(Object) and also sets the current filters to the given value.
write(Object) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
writeAuthenticationRequired(String) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
 
writeBadGateway(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Tells the client that something went wrong trying to proxy its request.
writeBadRequest(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Tells the client that the request was malformed or erroneous.
writeEmptyBuffer() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Write an empty buffer at the end of a chunked transfer.
writeGatewayTimeout(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
Tells the client that the connection to the server, or possibly to some intermediary service (such as DNS), timed out.
writeHttp(HttpObject) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Writes HttpObjects to the connection asynchronously.
writeHttp(HttpObject) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
 
writeRaw(ByteBuf) - Method in class org.littleshoot.proxy.impl.ProxyConnection
Writes raw buffers to the connection.
writeThrottleBytesPerSecond - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
 
writeToChannel(Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
 
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links

Copyright © 2009–2018 LittleShoot. All rights reserved.