Code example for HttpException

0
                if (authScheme != null) {
                    Credentials credentials = credsProvider.getCredentials(
                            new AuthScope(targetHost.getHostName(), targetHost.getPort()));
                     
                    if (credentials == null)
                        throw new HttpException("Credentials missing");
                     
                    authState.setAuthScheme(authScheme);
                    authState.setCredentials(credentials);
                } 
            } 
        } 
    } 
     
    public MuckeboxHttpClient() { 
        mHttpClient = new DefaultHttpClient();
         
        addCredentials(); 
        configureTimeout(); 
        setUserAgent(); 
Contextual code suggestions in your IDE  Get Codota for Java