org.apache.http.impl.conn

## Class SystemDefaultRoutePlanner

- java.lang.Object
- - org.apache.http.impl.conn.DefaultRoutePlanner
  - - org.apache.http.impl.conn.SystemDefaultRoutePlanner

- All Implemented Interfaces:
    HttpRoutePlanner

      @Contract(threading=IMMUTABLE_CONDITIONAL)
      public class SystemDefaultRoutePlanner
      extends DefaultRoutePlanner

  `HttpRoutePlanner`实现基于`ProxySelector` 。 默认情况下，此类将从系统属性或运行应用程序的浏览器中获取JVM的代理设置。
  从以下版本开始：
    4.3

- - ### 构造方法摘要

    构造方法
    Constructor and Description
    `SystemDefaultRoutePlanner(ProxySelector proxySelector)`
    `SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver, ProxySelector proxySelector)`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected HttpHost` | `determineProxy(HttpHost target, HttpRequest request, HttpContext context)` 此实现返回null。

    - ### Methods inherited from class org.apache.http.impl.conn.DefaultRoutePlanner

      `determineRoute`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造方法详细信息

    - #### SystemDefaultRoutePlanner

          public SystemDefaultRoutePlanner(SchemePortResolver schemePortResolver,
                                   ProxySelector proxySelector)

      参数
        `proxySelector` - 代理选择器，或 `null`系统默认值

    - #### SystemDefaultRoutePlanner

          public SystemDefaultRoutePlanner(ProxySelector proxySelector)

      参数
        `proxySelector` - 代理选择器，或 `null`系统默认值

  - ### 方法详细信息

    - #### determineProxy

          protected HttpHost determineProxy(HttpHost target,
                                HttpRequest request,
                                HttpContext context)
                                     throws HttpException

      描述从类别`DefaultRoutePlanner`复制
      此实现返回null。
      重写：
        `determineProxy`在 `DefaultRoutePlanner`
      异常
        `HttpException` - 如果被覆盖，可能会被抛出

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585