Class HttpConnectSocketBroker
java.lang.Object
com.exceptionfactory.socketbroker.protocol.http.HttpConnectSocketBroker
- All Implemented Interfaces:
SocketBroker
HTTP CONNECT implementation of Socket Broker based on RFC 7231 Section 4.3.6
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(Socket socket, InetSocketAddress remoteAddress, BrokerConfiguration brokerConfiguration) Request connection to remote address through socket connected to HTTP Proxy Server
-
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 interfaceSocketBroker
- Parameters:
socket
- Socket connected to Proxy ServerremoteAddress
- Remote Address for requested connection through Proxy ServerbrokerConfiguration
- Broker Configuration- Throws:
IOException
- Thrown on socket communication failuresConnectException
- Thrown on unsuccessful requests for connection to remote addressBrokeredAuthenticationException
- Thrown on unsuccessful requests indicating proxy authentication required
-