Class ProxySelectorRoutePlanner

    • Constructor Detail

      • ProxySelectorRoutePlanner

        public ProxySelectorRoutePlanner​(SchemeRegistry schreg,
                                         java.net.ProxySelector prosel)
        Deprecated.
        Creates a new proxy selector route planner.
        Parameters:
        schreg - the scheme registry
        prosel - the proxy selector, or null for the system default
    • Method Detail

      • getProxySelector

        public java.net.ProxySelector getProxySelector()
        Deprecated.
        Obtains the proxy selector to use.
        Returns:
        the proxy selector, or null for the system default
      • setProxySelector

        public void setProxySelector​(java.net.ProxySelector prosel)
        Deprecated.
        Sets the proxy selector to use.
        Parameters:
        prosel - the proxy selector, or null to use the system default
      • determineRoute

        public HttpRoute determineRoute​(HttpHost target,
                                        HttpRequest request,
                                        HttpContext context)
                                 throws HttpException
        Deprecated.
        Description copied from interface: HttpRoutePlanner
        Determines the route for a request.
        Specified by:
        determineRoute in interface HttpRoutePlanner
        Parameters:
        target - the target host for the request. Implementations may accept null if they can still determine a route, for example to a default target or by inspecting the request.
        request - the request to execute
        context - the context to use for the subsequent execution. Implementations may accept null.
        Returns:
        the route that the request should take
        Throws:
        HttpException - in case of a problem