Code example for BasicScheme

0
                // If not auth scheme has been initialized yet 
                if (authState.getAuthScheme() == null) { 
                    AuthScope authScope = new AuthScope(targetHost.getHostName(), targetHost.getPort()); 
                    org.apache.http.auth.Credentials creds = credsProvider.getCredentials(authScope); 
                    if (creds != null) { 
                        authState.setAuthScheme(new BasicScheme()); 
                        authState.setCredentials(creds); 
                    } 
                } 
            } 
        }; 
    } 
     
    private static class StateHolder { 
        private String mHtml;
        private boolean mIsRunningTask;
        private SpecialTask mTask;
         
         
        public StateHolder() { 
            mIsRunningTask = false;