Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
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
- ABSOLUTE_URI_PATTERN - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
-
Used for case-insensitive comparisons when checking direct proxy request.
- acceptorThreads - Variable in class org.littleshoot.proxy.impl.ThreadPoolConfiguration
- acceptProxyProtocol - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- acceptProxyProtocol - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- ActivityTracker - Interface in org.littleshoot.proxy
-
Interface for receiving information about activity in the proxy.
- ActivityTrackerAdapter - Class in org.littleshoot.proxy
-
Adapter of
ActivityTrackerinterface 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
- addFirstOrReplaceHandler(String, ChannelHandler) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- addressFor(String, DefaultHttpProxyServer) - Static method in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Build an
InetSocketAddressfor 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 - 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
- allowRequestsToOriginServer - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- allowRequestToOriginServer - 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
- AWAITING_CHUNK - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
Connected and awaiting HttpContent chunk.
- AWAITING_CONNECT_OK - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
When forwarding a CONNECT to a chained proxy, we await the CONNECTION_OK message from the proxy.
- AWAITING_INITIAL - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
Connected and awaiting initial message (e.g.
- AWAITING_PROXY_AUTHENTICATION - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
Connected but waiting for proxy authentication.
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
-
Updates the current state to the given value.
- become(ConnectionState) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- bootstrap() - Static method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
-
Bootstrap a new
DefaultHttpProxyServerstarting from scratch. - bootstrapFromFile(String) - Static method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
-
Bootstrap a new
DefaultHttpProxyServerusing 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
- bytesReadMonitor - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- BytesReadMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.BytesReadMonitor
- 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 - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- BytesWrittenMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.BytesWrittenMonitor
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 - Variable in class org.littleshoot.proxy.FullFlowContext
- chainedProxy - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- 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.
- chainedProxyType - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- ChainedProxyType - Enum in org.littleshoot.proxy
-
Enumeration of chained proxy types supported by LittleProxy.
- ChainedProxyType() - Constructor for enum org.littleshoot.proxy.ChainedProxyType
- 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.
- channelInactive(ChannelHandlerContext) - Method in class org.littleshoot.proxy.impl.ProxyConnectionPipeHandler
- 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
- channelRead(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnectionPipeHandler
- channelRead0(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
- channelRegistered(ChannelHandlerContext) - Method in class org.littleshoot.proxy.impl.ProxyConnection
- channelUnregistered(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
- clientAddress - Variable in class org.littleshoot.proxy.impl.ClientDetails
-
The client's address
- 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
- clientDetails - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- ClientDetails - Class in org.littleshoot.proxy.impl
-
Contains information about the client.
- ClientDetails() - Constructor for class org.littleshoot.proxy.impl.ClientDetails
- 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
SSLEnginefor 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.
- command - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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
Channelis connected. - CONNECTING - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
Connection attempting to connect.
- 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 - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Encapsulates the flow for establishing a connection, which can vary depending on how things are configured.
- 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
ConnectionFlowfor the given client and server connections. - 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() - Constructor for enum org.littleshoot.proxy.impl.ConnectionState
- ConnectionState(boolean) - 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
ConnectionFlowhas 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
HttpRequestverbatim. - 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.
- createFullHttpResponse(HttpVersion, HttpResponseStatus) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Creates a new
FullHttpResponsewith no body content - createFullHttpResponse(HttpVersion, HttpResponseStatus, String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Creates a new
FullHttpResponsewith the specified String as the body contents (encoded using UTF-8). - createFullHttpResponse(HttpVersion, HttpResponseStatus, String, ByteBuf, int) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Creates a new
FullHttpResponsewith the specified body. - 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
-
Keeps track of HttpRequests that have been issued so that we can associate them with responses that we get back
- 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
HostResolverthat just usesInetAddress.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, int, int, int, boolean, boolean, boolean) - 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(Properties) - 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, int, int, int, boolean) - Constructor for class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- destinationAddress - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- destinationPort - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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.
- DISCONNECT_REQUESTED - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
We've asked the client to disconnect, but it hasn't yet.
- 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
Channelbecomes disconnected. - disconnected() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- DISCONNECTED - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
Disconnected
- 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.LocationAwareLoggerDispatch
- 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
- encode(ChannelHandlerContext, ProxyProtocolMessage, ByteBuf) - Method in class org.littleshoot.proxy.extras.HAProxyMessageEncoder
- encrypt(ChannelPipeline, SSLEngine, boolean) - Method in class org.littleshoot.proxy.impl.ProxyConnection
-
Encrypts traffic on this connection with SSL/TLS.
- encrypt(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(ChannelHandlerContext, Throwable) - Method in class org.littleshoot.proxy.impl.ProxyConnection
- 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(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() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
-
Like
ConnectionFlow.fail(Throwable)but with no cause. - fail(Throwable) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
-
Called when the flow fails at some
ConnectionFlowStep. - 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
-
ChainedProxythat 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) - Method in class org.littleshoot.proxy.HttpFiltersSourceAdapter
- filterRequest(HttpRequest, ChannelHandlerContext) - Method in interface org.littleshoot.proxy.HttpFiltersSource
-
Return an
HttpFiltersobject for this request if and only if we want to filter the request and/or its responses. - 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
- first(ConnectionFlowStep) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
-
Add a
ConnectionFlowStepto the beginning of this flow. - 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() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- 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
- 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
FlowContextthat 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(AsciiString, 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
InetSocketAddressfor connecting to the chained proxy. - getChainedProxyAddress() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
- getChainedProxyAddress() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- getChainedProxyType() - Method in interface org.littleshoot.proxy.ChainedProxy
-
Tell LittleProxy the type of chained proxy that it will be connecting to.
- getChainedProxyType() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
- getChainedProxyType() - 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.ClientDetails
- getClientAddress() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- getClientDetails() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- getClientSslSession() - Method in class org.littleshoot.proxy.FlowContext
-
If using SSL, this returns the
SSLSessionon 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
- getCommand() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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
- getDestinationAddress() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- getDestinationPort() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- getFiltersSource() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- getHaProxyMessage() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- getHaProxyMessage(ProxyProtocolMessage) - Method in class org.littleshoot.proxy.extras.HAProxyMessageEncoder
- getHAProxyMessage(InetSocketAddress, InetSocketAddress) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
- 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
- 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
- getPassword() - Method in interface org.littleshoot.proxy.ChainedProxy
-
(Optional) implement this method if the chained proxy requires a password.
- getPassword() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
- getProtocolVersion() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- getProxiedProtocol() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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
- getSourceAddress() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- getSourcePort() - Method in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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
ProxyThreadPoolsfor 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
- getUsername() - Method in interface org.littleshoot.proxy.ChainedProxy
-
(Optional) implement this method if the chained proxy requires a username.
- getUsername() - Method in class org.littleshoot.proxy.ChainedProxyAdapter
- getUserName() - Method in class org.littleshoot.proxy.impl.ClientDetails
- 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
- HANDSHAKING - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
In the middle of doing an SSL handshake.
- haProxyMessage - Variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
-
Keep track of proxy protocol header
- HAProxyMessageEncoder - Class in org.littleshoot.proxy.extras
-
Encodes an HAProxy proxy protocol header
- HAProxyMessageEncoder() - Constructor for class org.littleshoot.proxy.extras.HAProxyMessageEncoder
- 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 - Enum constant in enum org.littleshoot.proxy.ChainedProxyType
- HTTP_DECODER_NAME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- HTTP_DECODER_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- HTTP_ENCODER_NAME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- HTTP_ENCODER_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- HTTP_PREFIX - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
- HTTP_PROXY_DECODER_NAME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- HTTP_PROXY_ENCODER_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- HTTP_REQUEST_READ_MONITOR_NAME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- HTTP_REQUEST_WRITTEN_MONITOR_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- HTTP_RESPONSE_READ_MONITOR_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- HTTP_RESPONSE_WRITTEN_MONITOR_NAME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- 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) - Constructor for class org.littleshoot.proxy.HttpFiltersAdapter
- HttpFiltersAdapter(HttpRequest, ChannelHandlerContext) - 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
- 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
ChannelPipelinefor the client to proxy channel. - initChannelPipeline(ChannelPipeline, HttpRequest) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Initialize our
ChannelPipelineto connect the upstream server. - initializeConnectionFlow() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
This method initializes our
ConnectionFlowbased on however this connection has been configured. - initializeKeyStore(File) - 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.
- isAcceptProxyProtocol() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
-
Is the proxy server set to accept a proxy protocol header
- isAcceptProxyProtocol() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- isAllowRequestsToOriginServer() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- 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
trueif 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
- isNextHopOriginServer() - 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.
- isSendProxyProtocol() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
-
Is the proxy server set to send a proxy protocol header
- isSendProxyProtocol() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- isStopped() - Method in class org.littleshoot.proxy.impl.ServerGroup
- isSwitchingToWebSocketProtocol(HttpRequest) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Tests whether the given request indicates that the connection is switching to the WebSocket protocol.
- isSwitchingToWebSocketProtocol(HttpResponse) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Tests whether the given response indicates that the connection is switching to the WebSocket protocol.
- isTransparent() - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- isTrue(String) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Returns
trueif 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
- loadKeyStore() - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- loadKeyStore(KeyStore, URL) - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- 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
- LocationAwareLoggerDispatch(LocationAwareLogger) - Constructor for class org.littleshoot.proxy.impl.ProxyConnectionLogger.LocationAwareLoggerDispatch
- log - Static variable in class org.littleshoot.proxy.impl.CategorizedThreadFactory
- log - Variable in class org.littleshoot.proxy.impl.ProxyConnectionLogger.LocationAwareLoggerDispatch
- log - Static variable in class org.littleshoot.proxy.impl.ServerGroup
- 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.extras.SelfSignedSslEngineSource
- 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 - Static variable in class org.littleshoot.proxy.impl.ProxyUtils
- 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>, ClientDetails) - 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.
- MAIN_HANDLER_NAME - Static variable in class org.littleshoot.proxy.impl.ClientToProxyConnection
- MAIN_HANDLER_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- MAX_CHUNK_SIZE_DEFAULT - Static variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- MAX_HEADER_SIZE_DEFAULT - Static variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- MAX_INITIAL_LINE_LENGTH_DEFAULT - Static variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- maxChunkSize - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- maxChunkSize - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- maxHeaderSize - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- maxHeaderSize - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- maxInitialLineLength - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- maxInitialLineLength - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- 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 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
- NEGOTIATING_CONNECT - Enum constant in enum org.littleshoot.proxy.impl.ConnectionState
-
In the process of negotiating an HTTP CONNECT from the client.
- 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() - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- newSslEngine() - Method in interface org.littleshoot.proxy.SslEngineSource
-
Returns an
SSLEngineto use for a server connection from LittleProxy to the client. - newSslEngine(String, int) - Method in class org.littleshoot.proxy.ChainedProxyAdapter
- newSslEngine(String, int) - Method in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- newSslEngine(String, int) - Method in interface org.littleshoot.proxy.SslEngineSource
-
Returns an
SSLEngineto 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
HttpFiltersinstance. - 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 - Variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- password - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- 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
ActivityTrackerfor 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 initializedProxyThreadPools. - protocolVersion - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- proxiedProtocol - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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 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.LocationAwareLoggerDispatch - 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.
- ProxyConnectionPipeHandler - Class in org.littleshoot.proxy.impl
-
A
ChannelInboundHandlerthat writes all incoming data to the specified proxy connection. - ProxyConnectionPipeHandler(ProxyConnection<?>) - Constructor for class org.littleshoot.proxy.impl.ProxyConnectionPipeHandler
- ProxyProtocolMessage - Class in org.littleshoot.proxy.extras
- ProxyProtocolMessage(HAProxyMessage) - Constructor for class org.littleshoot.proxy.extras.ProxyProtocolMessage
- ProxyProtocolMessage(HAProxyProtocolVersion, HAProxyCommand, HAProxyProxiedProtocol, String, String, int, int) - Constructor for class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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
- proxyToServerAllowMitm() - Method in interface org.littleshoot.proxy.HttpFilters
-
Allow this proxy to act as an SSL man in the middle.
- proxyToServerAllowMitm() - 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
ProxyToServerConnectionare passed to this method, which passes it on toConnectionFlowStep.read(ConnectionFlow, Object)for the currentConnectionFlowStep. - 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
- 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.
- readHAProxyMessage(HAProxyMessage) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- readHAProxyMessage(HAProxyMessage) - Method in class org.littleshoot.proxy.impl.ProxyConnection
-
Read an
HAProxyMessage - readHAProxyMessage(HAProxyMessage) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- 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(I) - Method in class org.littleshoot.proxy.impl.ProxyConnection
-
Implement this to handle reading the initial object (e.g.
- readHTTPInitial(HttpRequest) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- 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
Channelwith 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.
- relayProxyInformation() - Method in class org.littleshoot.proxy.impl.ConnectionFlow
- 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
- remoteAddressResolver - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- removeHandlerIfPresent(ChannelPipeline, String) - Method in class org.littleshoot.proxy.impl.ProxyConnection
-
Removes the handler with the given name if it is present in the pipeline.
- removeHandlerIfPresent(String) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- removeHandlerIfPresent(String) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- removeSdchEncoding(HttpHeaders) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
Given an HttpHeaders instance, removes 'sdch' from the 'Accept-Encoding' header list (if it exists) and returns the modified instance.
- 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
HttpRequestfrom 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 - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- RequestWrittenMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.RequestWrittenMonitor
- requiresEncryption() - Method in interface org.littleshoot.proxy.ChainedProxy
-
Implement this method to tell LittleProxy whether 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.
- resetCurrentRequest() - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- resetInitialRequest() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- 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.
- responseRead(HttpResponse) - Method in class org.littleshoot.proxy.impl.ProxyConnection.ResponseReadMonitor
- responseReadMonitor - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- ResponseReadMonitor() - Constructor for class org.littleshoot.proxy.impl.ProxyConnection.ResponseReadMonitor
- responseReceivedFromServer(FullFlowContext, HttpResponse) - Method in interface org.littleshoot.proxy.ActivityTracker
-
Record that the proxy received an
HttpResponsefrom 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
-
MitmManagerthat uses self-signed certs for everything. - SelfSignedMitmManager() - Constructor for class org.littleshoot.proxy.extras.SelfSignedMitmManager
- SelfSignedMitmManager(SelfSignedSslEngineSource) - 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
SslEngineSourcefor testing. - SelfSignedSslEngineSource() - 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(String) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- SelfSignedSslEngineSource(String, boolean, boolean) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- SelfSignedSslEngineSource(String, boolean, boolean, String, String) - Constructor for class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- sendCerts - Variable in class org.littleshoot.proxy.extras.SelfSignedSslEngineSource
- sendProxyProtocol - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- sendProxyProtocol - Variable in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- serialVersionUID - Static variable in exception org.littleshoot.proxy.UnknownChainedProxyTypeException
- serialVersionUID - Static variable in exception org.littleshoot.proxy.UnknownTransportProtocolException
- SERVER_REGISTRATION_LOCK - Variable in class org.littleshoot.proxy.impl.ServerGroup
-
Lock controlling access to the
ServerGroup.registerProxyServer(HttpProxyServer)andServerGroup.unregisterProxyServer(HttpProxyServer, boolean)methods. - 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
ProxyToServerConnectionfails 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
ProxyToServerConnectionstarts 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
ProxyToServerConnectioncompletes 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
-
Our
ServerGroup. - 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
ServerGroup.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() - Method in class org.littleshoot.proxy.extras.SelfSignedMitmManager
- serverSslEngine() - Method in interface org.littleshoot.proxy.MitmManager
-
Creates an
SSLEnginefor encrypting the server connection. - serverSslEngine(String, int) - Method in class org.littleshoot.proxy.extras.SelfSignedMitmManager
- serverSslEngine(String, int) - Method in interface org.littleshoot.proxy.MitmManager
-
Creates an
SSLEnginefor 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
- setClientAddress(InetSocketAddress) - Method in class org.littleshoot.proxy.impl.ClientDetails
- 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.
- setUserName(String) - Method in class org.littleshoot.proxy.impl.ClientDetails
- 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 (https://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.
- sink - Variable in class org.littleshoot.proxy.impl.ProxyConnectionPipeHandler
- SOCKS_DECODER_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- SOCKS_ENCODER_NAME - Static variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- SOCKS4 - Enum constant in enum org.littleshoot.proxy.ChainedProxyType
- SOCKS4CONNECTWithChainedProxy - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Establishes a SOCKS4 connection.
- SOCKS5 - Enum constant in enum org.littleshoot.proxy.ChainedProxyType
- SOCKS5CONNECTRequestWithChainedProxy - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Establishes a SOCKS5 connection after
ProxyToServerConnection.SOCKS5InitialRequestand (optionally)ProxyToServerConnection.SOCKS5SendPasswordCredentialshave completed. - SOCKS5InitialRequest - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Initiates a SOCKS5 connection.
- SOCKS5SendPasswordCredentials - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Sends SOCKS5 password credentials after
ProxyToServerConnection.SOCKS5InitialRequesthas completed. - sourceAddress - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- sourcePort - Variable in class org.littleshoot.proxy.extras.ProxyProtocolMessage
- 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
ClientToProxyConnectionthat 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()orDefaultHttpProxyServer.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.
- stripHopByHopHeaders(HttpHeaders) - Static method in class org.littleshoot.proxy.impl.ProxyUtils
-
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.
- switchToWebSocketProtocol() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- switchToWebSocketProtocol(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
T
- TCP - Enum constant in enum org.littleshoot.proxy.TransportProtocol
- then(ConnectionFlowStep) - Method in class org.littleshoot.proxy.impl.ConnectionFlow
-
Add a
ConnectionFlowStepto the end of 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
Channeltimes out due to an idle timeout. - timedOut() - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- timedOut(ProxyToServerConnection) - Method in class org.littleshoot.proxy.impl.ClientToProxyConnection
- 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
- UDT - Enum constant in enum org.littleshoot.proxy.TransportProtocol
-
Deprecated.
- 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
- UnknownChainedProxyTypeException - Exception in org.littleshoot.proxy
-
This exception indicates that the system was asked to use an
ChainedProxyTypethat it didn't know how to handle. - UnknownChainedProxyTypeException(ChainedProxyType) - Constructor for exception org.littleshoot.proxy.UnknownChainedProxyTypeException
- 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
- unregisterChannel(Channel) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer
- unregisterProxyServer(HttpProxyServer, boolean) - Method in class org.littleshoot.proxy.impl.ServerGroup
-
Unregisters the specified proxy server from this server group.
- unresolvedAddressFor(String) - Static method in class org.littleshoot.proxy.impl.ProxyToServerConnection
-
Similar to
ProxyToServerConnection.addressFor(String, DefaultHttpProxyServer)except that it does not resolve the address. - userEventTriggered(ChannelHandlerContext, Object) - Method in class org.littleshoot.proxy.impl.ProxyConnection
-
We're looking for
IdleStateEvents to see if we need to disconnect. - username - Variable in class org.littleshoot.proxy.impl.ProxyToServerConnection
- userName - Variable in class org.littleshoot.proxy.impl.ClientDetails
-
The user name that was used for authentication, or null if authentication wasn't performed.
V
- valueOf(String) - Static method in enum org.littleshoot.proxy.ChainedProxyType
-
Returns the enum constant of this type with the specified name.
- 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.ChainedProxyType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- 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.
- withAcceptProxyProtocol(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
-
Specifies if the proxy server should accept a proxy protocol header.
- withAcceptProxyProtocol(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- 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
- withAllowRequestToOriginServer(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
-
When true, the proxy will accept requests that appear to be directed at an origin server (i.e.
- withAllowRequestToOriginServer(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
ChainedProxyManagerto 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
HttpFiltersSourceto 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
MitmManagerto use for making this proxy act as an SSL man in the middle - withManInTheMiddle(MitmManager) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- withMaxChunkSize(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
- withMaxChunkSize(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- withMaxHeaderSize(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
- withMaxHeaderSize(int) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- withMaxInitialLineLength(int) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
- withMaxInitialLineLength(int) - 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 going' 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
ProxyAuthenticatorto 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.
- withSendProxyProtocol(boolean) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
-
Specifies if the proxy server should send a proxy protocol header.
- withSendProxyProtocol(boolean) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- withServerGroup(ServerGroup) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
-
Specify a custom
ServerGroupto use for managing this server's resources and such. - withServerGroup(ServerGroup) - Method in class org.littleshoot.proxy.impl.DefaultHttpProxyServer.DefaultHttpProxyServerBootstrap
- withServerResolver(HostResolver) - Method in interface org.littleshoot.proxy.HttpProxyServerBootstrap
-
Specify a custom
HostResolverfor 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
SslEngineSourceto 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
TransportProtocolto 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) - Method in class org.littleshoot.proxy.impl.ProxyToServerConnection
- 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. - 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
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form