DefaultSchemePortResolver (Apache HttpClient 4.5.13 API)
Date: 2020-10-03

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Default `SchemePortResolver`.

Since:
  4.3

Field Summary
`static DefaultSchemePortResolver` | `INSTANCE`

Constructor Summary
`DefaultSchemePortResolver()`

Method Summary
`int` | `resolve(org.apache.http.HttpHost host)` Returns the actual port for the host based on the protocol scheme.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### INSTANCE

    public static final DefaultSchemePortResolver INSTANCE

Constructor Detail

### DefaultSchemePortResolver

    public DefaultSchemePortResolver()

Method Detail

### resolve

    public int resolve(org.apache.http.HttpHost host)
                throws UnsupportedSchemeException

  Description copied from interface: `SchemePortResolver`
  Returns the actual port for the host based on the protocol scheme.

  Specified by:
    `resolve` in interface `SchemePortResolver`
  Throws:
    `UnsupportedSchemeException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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