Package org.microproxy
Class FullFlowContext
java.lang.Object
org.microproxy.FlowContext
org.microproxy.FullFlowContext
A
FlowContext that also knows the server side of the flow.-
Constructor Summary
ConstructorsConstructorDescriptionFullFlowContext(FlowContext clientContext, String serverHostAndPort, ChainedProxy chainedProxy, InetSocketAddress remoteAddress) Creates a server-side view of a client exchange. -
Method Summary
Modifier and TypeMethodDescriptionReturns the upstream proxy in use, ornullfor a direct connection.Returns the client-side context this server-side view was made from.Returns the address the proxy is connected to: the server, or the chained proxy.Returns thehost:portthe client asked for.Methods inherited from class org.microproxy.FlowContext
acceptedAt, addResponseFlag, equals, failure, forwardedVia, getClientAddress, getClientDetails, getClientHello, getClientSslSession, getConnectionContext, getConnectionId, getDirectClientAddress, getHttpVersion, getLocalAddress, getProxyProtocolDestinationAddress, getStreamId, getTimingData, getTimings, hashCode, isChunkedWithContentLength, isEarlyData, isTransparentQuic, recordScriptCall, resetScriptStats, responseCodeDetails, responseFlags, responseSource, scriptStats, setResponseCodeDetails, setTimingData, socksVersion, timings, trace, upstreamStatus
-
Constructor Details
-
FullFlowContext
public FullFlowContext(FlowContext clientContext, String serverHostAndPort, ChainedProxy chainedProxy, InetSocketAddress remoteAddress) Creates a server-side view of a client exchange.- Parameters:
clientContext- the client connection or exchange contextserverHostAndPort- the requested server host and portchainedProxy- the upstream proxy in use, ornullfor direct routingremoteAddress- the connected server or upstream proxy address
-
-
Method Details
-
getClientContext
Returns the client-side context this server-side view was made from.- Returns:
- the client-side context this server-side view was made from
-
getServerHostAndPort
Returns thehost:portthe client asked for.- Returns:
- the
host:portthe client asked for
-
getChainedProxy
Returns the upstream proxy in use, ornullfor a direct connection.- Returns:
- the upstream proxy in use, or
nullfor a direct connection
-
getRemoteAddress
Returns the address the proxy is connected to: the server, or the chained proxy.- Returns:
- the address the proxy is connected to: the server, or the chained proxy
-