Code example for HttpHost

Methods: getSchemeName

0
     */ 
    public synchronized final Scheme getScheme(HttpHost host) {
        if (host == null) {
            throw new IllegalArgumentException("Host must not be null.");
        } 
        return getScheme(host.getSchemeName());
    } 
 
 
    /** 
     * Obtains a scheme by name, if registered. 
     * 
     * @param name      the name of the scheme to look up (in lowercase) 
     * 
     * @return  the scheme, or 
     *          <code>null</code> if there is none by this name 
     */ 
    public synchronized final Scheme get(String name) {
        if (name == null)
            throw new IllegalArgumentException("Name must not be null.");