| Package | Description |
|---|---|
| org.littleshoot.proxy.impl |
| Modifier and Type | Field and Description |
|---|---|
private ConnectionState |
ProxyConnection.currentState |
private ConnectionState |
ConnectionFlowStep.state |
| Modifier and Type | Method and Description |
|---|---|
private ConnectionState |
ClientToProxyConnection.doReadHTTPInitial(HttpRequest httpRequest)
Reads an
HttpRequest. |
protected ConnectionState |
ProxyConnection.getCurrentState() |
(package private) ConnectionState |
ConnectionFlowStep.getState() |
protected ConnectionState |
ClientToProxyConnection.readHTTPInitial(HttpRequest httpRequest)
Reading
|
protected ConnectionState |
ProxyToServerConnection.readHTTPInitial(HttpResponse httpResponse) |
protected abstract ConnectionState |
ProxyConnection.readHTTPInitial(I httpObject)
Implement this to handle reading the initial object (e.g.
|
static ConnectionState |
ConnectionState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState[] |
ConnectionState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ProxyToServerConnection.become(ConnectionState newState)
Lifecycle
|
protected void |
ProxyConnection.become(ConnectionState state)
Udpates the current state to the given value.
|
protected boolean |
ProxyConnection.is(ConnectionState state)
Utility for checking current state.
|
protected boolean |
ClientToProxyConnection.serverConnectionFailed(ProxyToServerConnection serverConnection,
ConnectionState lastStateBeforeFailure,
Throwable cause)
If the
ProxyToServerConnection fails to complete its connection
lifecycle successfully, this method is called to let us know about it. |
| Constructor and Description |
|---|
ConnectionFlowStep(ProxyConnection connection,
ConnectionState state)
Construct a new step in a connection flow.
|
ProxyConnection(ConnectionState initialState,
DefaultHttpProxyServer proxyServer,
boolean runsAsSslClient)
Construct a new ProxyConnection.
|
Copyright © 2009–2017 LittleShoot. All rights reserved.