Class HttpConnectSocketBroker

java.lang.Object
com.exceptionfactory.socketbroker.protocol.http.HttpConnectSocketBroker
All Implemented Interfaces:
SocketBroker

public class HttpConnectSocketBroker extends Object implements SocketBroker
HTTP CONNECT implementation of Socket Broker based on RFC 7231 Section 4.3.6
  • Constructor Details

    • HttpConnectSocketBroker

      public HttpConnectSocketBroker()
  • Method Details

    • connect

      public void connect(Socket socket, InetSocketAddress remoteAddress, BrokerConfiguration brokerConfiguration) throws IOException
      Request connection to remote address through socket connected to HTTP Proxy Server
      Specified by:
      connect in interface SocketBroker
      Parameters:
      socket - Socket connected to Proxy Server
      remoteAddress - Remote Address for requested connection through Proxy Server
      brokerConfiguration - Broker Configuration
      Throws:
      IOException - Thrown on socket communication failures
      ConnectException - Thrown on unsuccessful requests for connection to remote address
      BrokeredAuthenticationException - Thrown on unsuccessful requests indicating proxy authentication required