public static interface ReverseProxy.ProxyConnectionHandler
Modifier and Type | Method and Description |
---|---|
void |
handleConnection(InputStream clientIn,
OutputStream clientOut,
InputStream serverIn,
OutputStream serverOut,
InetSocketAddress clientLocalSocketAddress,
InetSocketAddress clientRemoteSocketAddress,
InetSocketAddress serverLocalSocketAddress,
InetSocketAddress serverRemoteSocketAddress,
de.unkrig.commons.lang.protocol.Stoppable stoppable)
This method is invoked when the
ReverseProxy has accepted a connection from a client and created
the connection to the remote server. |
void handleConnection(@NotNull InputStream clientIn, @NotNull OutputStream clientOut, @NotNull InputStream serverIn, @NotNull OutputStream serverOut, @NotNull InetSocketAddress clientLocalSocketAddress, @NotNull InetSocketAddress clientRemoteSocketAddress, @NotNull InetSocketAddress serverLocalSocketAddress, @NotNull InetSocketAddress serverRemoteSocketAddress, @NotNull de.unkrig.commons.lang.protocol.Stoppable stoppable) throws IOException
ReverseProxy
has accepted a connection from a client and created
the connection to the remote server.clientIn
- Stream from the clientclientOut
- Stream to the clientserverIn
- Stream from the serverserverOut
- Stream to the serverclientLocalSocketAddress
- Local address of the connection to the clientclientRemoteSocketAddress
- Remote address of the connection to the clientserverLocalSocketAddress
- Local address of the connection to the serverserverRemoteSocketAddress
- Remote address of the connection to the serverstoppable
- Stopping this shuts the reverse proxy downIOException
Copyright © 2018 Arno Unkrig. All rights reserved.