org.apache.http.impl.conn

## Class DefaultSchemePortResolver

- java.lang.Object
- - org.apache.http.impl.conn.DefaultSchemePortResolver

- All Implemented Interfaces:
    SchemePortResolver

      @Contract(threading=IMMUTABLE)
      public class DefaultSchemePortResolver
      extends Object
      implements SchemePortResolver

  默认`SchemePortResolver` 。
  从以下版本开始：
    4.3

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static DefaultSchemePortResolver` | `INSTANCE`

  - ### 构造方法摘要

    构造方法
    Constructor and Description
    `DefaultSchemePortResolver()`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `resolve(HttpHost host)` 根据协议方案返回主机的实际端口。

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

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

- - ### 字段详细信息

    - #### INSTANCE

          public static final DefaultSchemePortResolver INSTANCE

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

    - #### DefaultSchemePortResolver

          public DefaultSchemePortResolver()

  - ### 方法详细信息

    - #### resolve

          public int resolve(HttpHost host)
                      throws UnsupportedSchemeException

      描述从接口`SchemePortResolver`复制
      根据协议方案返回主机的实际端口。
      Specified by:
        `resolve`在接口 `SchemePortResolver`
      异常
        `UnsupportedSchemeException`

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

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