|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.webkit.Network
class Network
| Method Summary | |
|---|---|
void |
clearUserSslPrefTable()
Clears user SSL-error preference table. |
static void |
disablePlatformNotifications()
If platform notifications are enabled, this should be called from onPause() or onStop() |
static void |
enablePlatformNotifications()
Enables data state and proxy tracking |
static Network |
getInstance(Context context)
|
String |
getProxyHostname()
Get the proxy hostname. |
String |
getProxyPassword()
|
String |
getProxyUsername()
|
void |
handleAuthRequest(LoadListener loader)
Handles authentication requests on their way up to the user (the user must provide credentials). |
void |
handleSslErrorRequest(LoadListener loader)
Handles SSL error(s) on the way up to the user: the user must decide whether errors should be ignored or not. |
boolean |
isValidProxySet()
|
boolean |
requestURL(String method,
Map<String,String> headers,
String postData,
LoadListener loader,
boolean isHighPriority)
Request a url from either the network or the file system. |
void |
resetHandlersAndStopLoading(BrowserFrame frame)
If we need to stop loading done in a handler (here, browser frame), we send a message to the handler to stop loading, and remove all loaders that share the same CallbackProxy in question from all local handlers (such as ssl-error and http-authentication handler). |
boolean |
restoreState(Bundle inState)
Restores the state of network handlers (user SSL and HTTP-authentication preferences). |
boolean |
saveState(Bundle outState)
Saves the state of network handlers (user SSL and HTTP-authentication preferences). |
void |
setProxyPassword(String proxyPassword)
Sets the proxy password. |
void |
setProxyUsername(String proxyUsername)
Sets the proxy username. |
void |
startTiming()
|
void |
stopTiming()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Network getInstance(Context context)
public static void enablePlatformNotifications()
public static void disablePlatformNotifications()
public boolean requestURL(String method,
Map<String,String> headers,
String postData,
LoadListener loader,
boolean isHighPriority)
url - The url to load.method - The http method.headers - The http headers.postData - The body of the request.loader - A LoadListener for receiving the results of the request.isHighPriority - True if this is high priority request.
public boolean isValidProxySet()
public String getProxyHostname()
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
proxyUsername - Username to use when
connecting through the proxy.public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - Password to use when
connecting through the proxy.public void resetHandlersAndStopLoading(BrowserFrame frame)
proxy - The CallbackProxy responsible for cancelling the current
load.public boolean saveState(Bundle outState)
outState - The out-state to save (write) to.
public boolean restoreState(Bundle inState)
inState - The in-state to load (read) from.
public void clearUserSslPrefTable()
public void handleSslErrorRequest(LoadListener loader)
loader - The loader that resulted in SSL errors.public void handleAuthRequest(LoadListener loader)
loader - The loader that resulted in an HTTP
authentication request.public void startTiming()
public void stopTiming()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||