de.unkrig.commons.net
Interface ReverseProxy.ProxyConnectionHandler

Enclosing class:
ReverseProxy

public static interface ReverseProxy.ProxyConnectionHandler

See Also:
handleConnection(InputStream, OutputStream, InputStream, OutputStream, InetSocketAddress, InetSocketAddress, InetSocketAddress, InetSocketAddress, Stoppable)

Method Summary
 void handleConnection(java.io.InputStream clientIn, java.io.OutputStream clientOut, java.io.InputStream serverIn, java.io.OutputStream serverOut, java.net.InetSocketAddress clientLocalSocketAddress, java.net.InetSocketAddress clientRemoteSocketAddress, java.net.InetSocketAddress serverLocalSocketAddress, java.net.InetSocketAddress serverRemoteSocketAddress, Stoppable stoppable)
          This method is invoked when the ReverseProxy has accepted a connection from a client and created the connection to the remote server.
 

Method Detail

handleConnection

void handleConnection(@NotNull
                      java.io.InputStream clientIn,
                      @NotNull
                      java.io.OutputStream clientOut,
                      @NotNull
                      java.io.InputStream serverIn,
                      @NotNull
                      java.io.OutputStream serverOut,
                      @NotNull
                      java.net.InetSocketAddress clientLocalSocketAddress,
                      @NotNull
                      java.net.InetSocketAddress clientRemoteSocketAddress,
                      @NotNull
                      java.net.InetSocketAddress serverLocalSocketAddress,
                      @NotNull
                      java.net.InetSocketAddress serverRemoteSocketAddress,
                      @NotNull
                      Stoppable stoppable)
                      throws java.io.IOException
This method is invoked when the ReverseProxy has accepted a connection from a client and created the connection to the remote server.

Parameters:
clientIn - Stream from the client
clientOut - Stream to the client
serverIn - Stream from the server
serverOut - Stream to the server
clientLocalSocketAddress - Local address of the connection to the client
clientRemoteSocketAddress - Remote address of the connection to the client
serverLocalSocketAddress - Local address of the connection to the server
serverRemoteSocketAddress - Remote address of the connection to the server
stoppable - Stopping this shuts the reverse proxy down
Throws:
java.io.IOException