Uses of Class
org.littleshoot.proxy.impl.ProxyToServerConnection
Packages that use ProxyToServerConnection
-
Uses of ProxyToServerConnection in org.littleshoot.proxy
Constructors in org.littleshoot.proxy with parameters of type ProxyToServerConnectionModifierConstructorDescriptionFullFlowContext(ClientToProxyConnection clientConnection, ProxyToServerConnection serverConnection) -
Uses of ProxyToServerConnection in org.littleshoot.proxy.impl
Fields in org.littleshoot.proxy.impl declared as ProxyToServerConnectionModifier and TypeFieldDescriptionprivate ProxyToServerConnectionClientToProxyConnection.currentServerConnectionThis is the current server connection that we're using while transferring chunked data.private final ProxyToServerConnectionConnectionFlow.serverConnectionprivate final ProxyToServerConnectionProxyToServerConnection.serverConnectionFields in org.littleshoot.proxy.impl with type parameters of type ProxyToServerConnectionModifier and TypeFieldDescriptionprivate final Map<String,ProxyToServerConnection> ClientToProxyConnection.serverConnectionsByHostAndPortKeep track of all ProxyToServerConnections by host+port.Methods in org.littleshoot.proxy.impl that return ProxyToServerConnectionModifier and TypeMethodDescription(package private) static ProxyToServerConnectionProxyToServerConnection.create(DefaultHttpProxyServer proxyServer, ClientToProxyConnection clientConnection, String serverHostAndPort, HttpFilters initialFilters, HttpRequest initialHttpRequest, GlobalTrafficShapingHandler globalTrafficShapingHandler) Create a new ProxyToServerConnection.Methods in org.littleshoot.proxy.impl with parameters of type ProxyToServerConnectionModifier and TypeMethodDescriptionprivate voidClientToProxyConnection.closeConnectionsAfterWriteIfNecessary(ProxyToServerConnection serverConnection, HttpRequest currentHttpRequest, HttpResponse currentHttpResponse, HttpObject httpObject) This method takes care of closing client to proxy and/or proxy to server connections after finishing a write.private voidClientToProxyConnection.connectionFailedUnrecoverably(HttpRequest initialRequest, ProxyToServerConnection serverConnection) private voidClientToProxyConnection.forceDisconnect(ProxyToServerConnection serverConnection) (package private) voidClientToProxyConnection.respond(ProxyToServerConnection serverConnection, HttpFilters filters, HttpRequest currentHttpRequest, HttpResponse currentHttpResponse, HttpObject httpObject) Send a response to the client.protected voidClientToProxyConnection.serverBecameSaturated(ProxyToServerConnection serverConnection) When a server becomes saturated, we stop reading from the client.protected voidClientToProxyConnection.serverBecameWriteable(ProxyToServerConnection serverConnection) When a server becomes writeable, we check to see if all servers are writeable and if they are, we resume reading.protected booleanClientToProxyConnection.serverConnectionFailed(ProxyToServerConnection serverConnection, ConnectionState lastStateBeforeFailure, Throwable cause) If theProxyToServerConnectionfails to complete its connection lifecycle successfully, this method is called to let us know about it.protected voidClientToProxyConnection.serverConnectionFlowStarted(ProxyToServerConnection serverConnection) Called whenProxyToServerConnectionstarts its connection flow.protected voidClientToProxyConnection.serverConnectionSucceeded(ProxyToServerConnection serverConnection, boolean shouldForwardInitialRequest) If theProxyToServerConnectioncompletes its connection lifecycle successfully, this method is called to let us know about it.protected voidClientToProxyConnection.serverDisconnected(ProxyToServerConnection serverConnection) On disconnect of the server, track that we have one fewer connected servers and then disconnect the client if necessary.private voidClientToProxyConnection.switchToWebSocketProtocol(ProxyToServerConnection serverConnection) (package private) voidClientToProxyConnection.timedOut(ProxyToServerConnection serverConnection) Constructors in org.littleshoot.proxy.impl with parameters of type ProxyToServerConnectionModifierConstructorDescription(package private)ConnectionFlow(ClientToProxyConnection clientConnection, ProxyToServerConnection serverConnection, Object connectLock) Construct a newConnectionFlowfor the given client and server connections.