Build 1.0_r1(from source)

android.webkit
Class SslErrorHandler

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

public class SslErrorHandler
extends Handler

SslErrorHandler: class responsible for handling SSL errors. This class is passed as a parameter to BrowserCallback.displaySslErrorDialog and is meant to receive the user's response.


Constructor Summary
SslErrorHandler(Network network)
          Creates a new error handler with an empty loader queue.
 
Method Summary
 void cancel()
          Cancel this request and all pending requests for the WebView that had the error.
(package private)  void clear()
          Clears SSL error preference table.
(package private)  void fastProcessQueuedSslErrors()
          Processes queued SSL-error confirmation requests in a tight loop while there is no need to ask the user.
 void handleMessage(Message msg)
          Subclasses must implement this to receive messages.
(package private)  void handleSslErrorRequest(LoadListener loader)
          Handles SSL error(s) on the way up to the user.
(package private)  void handleSslErrorResponse(boolean proceed)
          Handles SSL error(s) on the way down from the user.
 void proceed()
          Proceed with the SSL certificate.
(package private)  void reset(BrowserFrame frame)
          Resets the SSL error handler, removes all loaders that share the same BrowserFrame.
(package private)  boolean restoreState(Bundle inState)
          Restores this handler's state from a map.
(package private)  boolean saveState(Bundle outState)
          Saves this handler's state into a map.
 
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

SslErrorHandler

SslErrorHandler(Network network)
Creates a new error handler with an empty loader queue.

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

saveState

boolean saveState(Bundle outState)
Saves this handler's state into a map.

Returns:
True iff succeeds.

restoreState

boolean restoreState(Bundle inState)
Restores this handler's state from a map.

Returns:
True iff succeeds.

clear

void clear()
Clears SSL error preference table.


reset

void reset(BrowserFrame frame)
Resets the SSL error handler, removes all loaders that share the same BrowserFrame.


handleSslErrorRequest

void handleSslErrorRequest(LoadListener loader)
Handles SSL error(s) on the way up to the user.


fastProcessQueuedSslErrors

void fastProcessQueuedSslErrors()
Processes queued SSL-error confirmation requests in a tight loop while there is no need to ask the user.


proceed

public void proceed()
Proceed with the SSL certificate.


cancel

public void cancel()
Cancel this request and all pending requests for the WebView that had the error.


handleSslErrorResponse

void handleSslErrorResponse(boolean proceed)
Handles SSL error(s) on the way down from the user.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature