| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.conn.scheme.SchemeRegistry
Registry
@Contract(threading=SAFE) @Deprecated public final class SchemeRegistry
A set of supported protocol Schemes.
 Schemes are identified by lowercase names.
| Constructor Summary | |
|---|---|
| SchemeRegistry()Deprecated. Creates a new, empty scheme registry. | |
| Method Summary | |
|---|---|
|  Scheme | get(String name)Deprecated. Obtains a scheme by name, if registered. | 
|  Scheme | getScheme(org.apache.http.HttpHost host)Deprecated. Obtains the scheme for a host. | 
|  Scheme | getScheme(String name)Deprecated. Obtains a scheme by name. | 
|  List<String> | getSchemeNames()Deprecated. Obtains the names of the registered schemes. | 
|  Scheme | register(Scheme sch)Deprecated. Registers a scheme. | 
|  void | setItems(Map<String,Scheme> map)Deprecated. Populates the internal collection of registered protocol schemeswith the content of the map passed as a parameter. | 
|  Scheme | unregister(String name)Deprecated. Unregisters a scheme. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SchemeRegistry()
| Method Detail | 
|---|
public final Scheme 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 Scheme getScheme(org.apache.http.HttpHost host)
getScheme(host.getSchemeName())
host - the host for which to obtain the scheme
null
IllegalStateException - if a scheme with the respective name is not registeredpublic final Scheme get(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)
getScheme or get.
sch - the scheme to register
null if none was registeredpublic final Scheme 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,Scheme> map)
protocol schemes
 with the content of the map passed as a parameter.
map - protocol schemes| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||