Package org.apache.http.conn.scheme
Class SchemeRegistry
java.lang.Object
org.apache.http.conn.scheme.SchemeRegistry
Deprecated.
A set of supported protocol
Scheme
s.
Schemes are identified by lowercase names.- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Scheme
Deprecated.Obtains a scheme by name, if registered.final Scheme
Deprecated.Obtains a scheme by name.final Scheme
Deprecated.Obtains the scheme for a host.Deprecated.Obtains the names of the registered schemes.final Scheme
Deprecated.Registers a scheme.void
Deprecated.Populates the internal collection of registeredprotocol schemes
with the content of the map passed as a parameter.final Scheme
unregister
(String name) Deprecated.Unregisters a scheme.
-
Constructor Details
-
SchemeRegistry
public SchemeRegistry()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
null
if there is none by this name
-
register
Deprecated.- Parameters:
sch
- the scheme to register- Returns:
- the scheme previously registered with that name, or
null
if none was registered
-
unregister
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
Deprecated.Obtains the names of the registered schemes.- Returns:
- List containing registered scheme names.
-
setItems
Deprecated.Populates the internal collection of registeredprotocol schemes
with the content of the map passed as a parameter.- Parameters:
map
- protocol schemes
-
Registry