@Deprecated public final class AsyncSchemeRegistry extends Object
AsyncScheme
s.
Schemes are identified by lowercase names.Constructor and Description |
---|
AsyncSchemeRegistry()
Deprecated.
Creates a new, empty scheme registry.
|
Modifier and Type | Method and Description |
---|---|
AsyncScheme |
get(String name)
Deprecated.
Obtains a scheme by name, if registered.
|
AsyncScheme |
getScheme(HttpHost host)
Deprecated.
Obtains the scheme for a host.
|
AsyncScheme |
getScheme(String name)
Deprecated.
Obtains a scheme by name.
|
List<String> |
getSchemeNames()
Deprecated.
Obtains the names of the registered schemes.
|
AsyncScheme |
register(AsyncScheme sch)
Deprecated.
Registers a scheme.
|
void |
setItems(Map<String,AsyncScheme> map)
Deprecated.
Populates the internal collection of registered
protocol schemes
with the content of the map passed as a parameter. |
AsyncScheme |
unregister(String name)
Deprecated.
Unregisters a scheme.
|
public AsyncSchemeRegistry()
public final AsyncScheme getScheme(String name)
name
- the name of the scheme to look up (in lowercase)null
IllegalStateException
- if the scheme with the given name is not registeredpublic final AsyncScheme getScheme(HttpHost host)
getScheme(host.getSchemeName())
host
- the host for which to obtain the schemenull
IllegalStateException
- if a scheme with the respective name is not registeredpublic final AsyncScheme get(String name)
name
- the name of the scheme to look up (in lowercase)null
if there is none by this namepublic final AsyncScheme register(AsyncScheme sch)
sch
- the scheme to registernull
if none was registeredpublic final AsyncScheme unregister(String name)
name
- the name of the scheme to unregister (in lowercase)null
if there was nonepublic final List<String> getSchemeNames()
public void setItems(Map<String,AsyncScheme> map)
protocol schemes
with the content of the map passed as a parameter.map
- protocol schemesCopyright © 2010–2021 The Apache Software Foundation. All rights reserved.