Save This Page
Home » httpcomponents-client-4.0.1-src » org.apache » http » conn » scheme » [javadoc | source]
org.apache.http.conn.scheme
public final class: SchemeRegistry [javadoc | source]
java.lang.Object
   org.apache.http.conn.scheme.SchemeRegistry
A set of supported protocol Scheme s. Schemes are identified by lowercase names.
Constructor:
 public SchemeRegistry() 
Method from org.apache.http.conn.scheme.SchemeRegistry Summary:
get,   getScheme,   getScheme,   getSchemeNames,   register,   setItems,   unregister
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.conn.scheme.SchemeRegistry Detail:
 public final synchronized Scheme get(String name) 
    Obtains a scheme by name, if registered.
 public final synchronized Scheme getScheme(String name) 
    Obtains a scheme by name.
 public final synchronized Scheme getScheme(HttpHost host) 
    Obtains the scheme for a host. Convenience method for getScheme(host.getSchemeName())
 public final synchronized List<String> getSchemeNames() 
    Obtains the names of the registered schemes in their default order.
 public final synchronized Scheme register(Scheme sch) 
    Registers a scheme. The scheme can later be retrieved by its name using getScheme or get .
 public synchronized  void setItems(Map<String, Scheme> map) 
    Populates the internal collection of registered protocol schemes with the content of the map passed as a parameter.
 public final synchronized Scheme unregister(String name) 
    Unregisters a scheme.