Package org.apache.http.conn.scheme
Class SchemeRegistry
- java.lang.Object
-
- org.apache.http.conn.scheme.SchemeRegistry
-
-
Constructor Summary
Constructors Constructor Description SchemeRegistry()
Deprecated.Creates a new, empty scheme registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Scheme
get(java.lang.String name)
Deprecated.Obtains a scheme by name, if registered.Scheme
getScheme(java.lang.String name)
Deprecated.Obtains a scheme by name.Scheme
getScheme(HttpHost host)
Deprecated.Obtains the scheme for a host.java.util.List<java.lang.String>
getSchemeNames()
Deprecated.Obtains the names of the registered schemes.Scheme
register(Scheme sch)
Deprecated.Registers a scheme.void
setItems(java.util.Map<java.lang.String,Scheme> map)
Deprecated.Populates the internal collection of registeredprotocol schemes
with the content of the map passed as a parameter.Scheme
unregister(java.lang.String name)
Deprecated.Unregisters a scheme.
-
-
-
Method Detail
-
getScheme
public final Scheme getScheme(java.lang.String name)
Deprecated.Obtains a scheme by name.- Parameters:
name
- the name of the scheme to look up (in lowercase)- Returns:
- the scheme, never
null
- Throws:
java.lang.IllegalStateException
- if the scheme with the given name is not registered
-
getScheme
public final Scheme getScheme(HttpHost host)
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:
java.lang.IllegalStateException
- if a scheme with the respective name is not registered
-
get
public final Scheme get(java.lang.String name)
Deprecated.Obtains a scheme by name, if registered.- Parameters:
name
- the name of the scheme to look up (in lowercase)- Returns:
- the scheme, or
null
if there is none by this name
-
register
public final Scheme register(Scheme sch)
Deprecated.- Parameters:
sch
- the scheme to register- Returns:
- the scheme previously registered with that name, or
null
if none was registered
-
unregister
public final Scheme unregister(java.lang.String name)
Deprecated.Unregisters a scheme.- Parameters:
name
- the name of the scheme to unregister (in lowercase)- Returns:
- the unregistered scheme, or
null
if there was none
-
getSchemeNames
public final java.util.List<java.lang.String> getSchemeNames()
Deprecated.Obtains the names of the registered schemes.- Returns:
- List containing registered scheme names.
-
setItems
public void setItems(java.util.Map<java.lang.String,Scheme> map)
Deprecated.Populates the internal collection of registeredprotocol schemes
with the content of the map passed as a parameter.- Parameters:
map
- protocol schemes
-
-