Registry@ThreadSafe @Deprecated public final class SchemeRegistry extends java.lang.Object
Schemes.
Schemes are identified by lowercase names.| 构造器和说明 |
|---|
SchemeRegistry()
已过时。
Creates a new, empty scheme registry.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Scheme |
get(java.lang.String name)
已过时。
Obtains a scheme by name, if registered.
|
Scheme |
getScheme(HttpHost host)
已过时。
Obtains the scheme for a host.
|
Scheme |
getScheme(java.lang.String name)
已过时。
Obtains a scheme by name.
|
java.util.List<java.lang.String> |
getSchemeNames()
已过时。
Obtains the names of the registered schemes.
|
Scheme |
register(Scheme sch)
已过时。
Registers a scheme.
|
void |
setItems(java.util.Map<java.lang.String,Scheme> map)
已过时。
Populates the internal collection of registered
protocol schemes
with the content of the map passed as a parameter. |
Scheme |
unregister(java.lang.String name)
已过时。
Unregisters a scheme.
|
public final Scheme getScheme(java.lang.String name)
name - the name of the scheme to look up (in lowercase)nulljava.lang.IllegalStateException - if the scheme with the given name is not registeredpublic final Scheme getScheme(HttpHost host)
getScheme(host.getSchemeName())host - the host for which to obtain the schemenulljava.lang.IllegalStateException - if a scheme with the respective name is not registeredpublic final Scheme get(java.lang.String name)
name - the name of the scheme to look up (in lowercase)null if there is none by this namepublic final Scheme register(Scheme sch)
sch - the scheme to registernull if none was registeredpublic final Scheme unregister(java.lang.String name)
name - the name of the scheme to unregister (in lowercase)null if there was nonepublic final java.util.List<java.lang.String> getSchemeNames()
public void setItems(java.util.Map<java.lang.String,Scheme> map)
protocol schemes
with the content of the map passed as a parameter.map - protocol schemes