Package ai.preferred.venom.socks
Class SocksHttpRoutePlanner
- java.lang.Object
-
- ai.preferred.venom.socks.SocksHttpRoutePlanner
-
- All Implemented Interfaces:
org.apache.http.conn.routing.HttpRoutePlanner
@Beta public class SocksHttpRoutePlanner extends Object implements org.apache.http.conn.routing.HttpRoutePlanner
This route planners ensures that the connection to https server via socks proxy works. It prevents http client from tunnelling the IO session twice (SocksIOSessionStrategy
upgradesSocksIOSession
toSSLIOSession
when necessary).
-
-
Constructor Summary
Constructors Constructor Description SocksHttpRoutePlanner(org.apache.http.conn.routing.HttpRoutePlanner rp)
DecoratesHttpRoutePlanner
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.conn.routing.HttpRoute
determineRoute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
-
-
-
Method Detail
-
determineRoute
public org.apache.http.conn.routing.HttpRoute determineRoute(org.apache.http.HttpHost host, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException
- Specified by:
determineRoute
in interfaceorg.apache.http.conn.routing.HttpRoutePlanner
- Throws:
org.apache.http.HttpException
-
-