Class AsyncSchemeRegistry
java.lang.Object
org.apache.http.nio.conn.scheme.AsyncSchemeRegistry
Deprecated.
A set of supported protocol
AsyncSchemes.
Schemes are identified by lowercase names.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, AsyncScheme> Deprecated.The available schemes in this registry. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AsyncSchemeDeprecated.Obtains a scheme by name, if registered.final AsyncSchemeDeprecated.Obtains a scheme by name.final AsyncSchemegetScheme(org.apache.http.HttpHost host) Deprecated.Obtains the scheme for a host.Deprecated.Obtains the names of the registered schemes.final AsyncSchemeregister(AsyncScheme sch) Deprecated.Registers a scheme.voidsetItems(Map<String, AsyncScheme> map) Deprecated.Populates the internal collection of registeredprotocol schemeswith the content of the map passed as a parameter.final AsyncSchemeunregister(String name) Deprecated.Unregisters a scheme.
-
Field Details
-
registeredSchemes
Deprecated.The available schemes in this registry.
-
-
Constructor Details
-
AsyncSchemeRegistry
public AsyncSchemeRegistry()Deprecated.Creates a new, empty scheme registry.
-
-
Method Details
-
getScheme
Deprecated.Obtains a scheme by name.- Parameters:
name- the name of the scheme to look up (in lowercase)- Returns:
- the scheme, never
null - Throws:
IllegalStateException- if the scheme with the given name is not registered
-
getScheme
Deprecated.Obtains the scheme for a host. Convenience method forgetScheme(host.getSchemeName())- Parameters:
host- the host for which to obtain the scheme- Returns:
- the scheme for the given host, never
null - Throws:
IllegalStateException- if a scheme with the respective name is not registered
-
get
Deprecated.Obtains a scheme by name, if registered.- Parameters:
name- the name of the scheme to look up (in lowercase)- Returns:
- the scheme, or
nullif there is none by this name
-
register
Deprecated.- Parameters:
sch- the scheme to register- Returns:
- the scheme previously registered with that name, or
nullif none was registered
-
unregister
Deprecated.Unregisters a scheme.- Parameters:
name- the name of the scheme to unregister (in lowercase)- Returns:
- the unregistered scheme, or
nullif there was none
-
getSchemeNames
-
setItems
Deprecated.Populates the internal collection of registeredprotocol schemeswith the content of the map passed as a parameter.- Parameters:
map- protocol schemes
-