|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.nio.conn.scheme.AsyncSchemeRegistry
@Deprecated public final class AsyncSchemeRegistry
A set of supported protocol AsyncSchemes.
Schemes are identified by lowercase names.
| Constructor Summary | |
|---|---|
AsyncSchemeRegistry()
Deprecated. Creates a new, empty scheme registry. |
|
| Method Summary | |
|---|---|
AsyncScheme |
get(String name)
Deprecated. Obtains a scheme by name, if registered. |
AsyncScheme |
getScheme(org.apache.http.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncSchemeRegistry()
| Method Detail |
|---|
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(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 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)
getScheme or get.
sch - the scheme to register
null 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 schemes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||