Build 1.0_r1(from source)

android.webkit
Class HttpAuthHandler

java.lang.Object
  extended by android.os.Handler
      extended by android.webkit.HttpAuthHandler

public class HttpAuthHandler
extends Handler

HTTP authentication handler: local handler that takes care of HTTP authentication requests. This class is passed as a parameter to BrowserCallback.displayHttpAuthDialog and is meant to receive the user's response.


Constructor Summary
HttpAuthHandler(Network network)
          Creates a new HTTP authentication handler with an empty loader queue
 
Method Summary
 void cancel()
          Cancel the authorization request
(package private)  void handleAuthRequest(LoadListener loader)
          Enqueues the loader, if the loader is the only element in the queue, starts processing the loader
 void handleMessage(Message msg)
          Subclasses must implement this to receive messages.
 void proceed(String username, String password)
          Proceed with the authorization with the given credentials
(package private)  void reset(BrowserFrame frame)
          Resets the HTTP-authentication request handler, removes all loaders that share the same BrowserFrame
 boolean useHttpAuthUsernamePassword()
           
 
Methods inherited from class android.os.Handler
dispatchMessage, dump, getLooper, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpAuthHandler

HttpAuthHandler(Network network)
Creates a new HTTP authentication handler with an empty loader queue

Parameters:
network - The parent network object
Method Detail

handleMessage

public void handleMessage(Message msg)
Description copied from class: Handler
Subclasses must implement this to receive messages.

Overrides:
handleMessage in class Handler

proceed

public void proceed(String username,
                    String password)
Proceed with the authorization with the given credentials

Parameters:
username - The username to use for authentication
password - The password to use for authentication

cancel

public void cancel()
Cancel the authorization request


useHttpAuthUsernamePassword

public boolean useHttpAuthUsernamePassword()
Returns:
True if we can use user credentials on record (ie, if we did not fail trying to use them last time)

reset

void reset(BrowserFrame frame)
Resets the HTTP-authentication request handler, removes all loaders that share the same BrowserFrame

Parameters:
frame - The browser frame

handleAuthRequest

void handleAuthRequest(LoadListener loader)
Enqueues the loader, if the loader is the only element in the queue, starts processing the loader

Parameters:
loader - The loader that resulted in this http authentication request

Build 1.0_r1(from source)

Please submit a feedback, bug or feature