Class 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 upgrades SocksIOSession to SSLIOSession when necessary).
    • Constructor Detail

      • SocksHttpRoutePlanner

        public SocksHttpRoutePlanner​(org.apache.http.conn.routing.HttpRoutePlanner rp)
        Decorates HttpRoutePlanner.
        Parameters:
        rp - decorated route planner
    • 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 interface org.apache.http.conn.routing.HttpRoutePlanner
        Throws:
        org.apache.http.HttpException