Methods Summary |
---|
private native boolean | createV8ParserNativeLocked()
|
private native boolean | destroyV8ParserNativeLocked()
|
public synchronized boolean | isActive()
return mIsActive;
|
public synchronized java.lang.String | makeProxyRequest(java.lang.String url, java.lang.String host)
String ret = makeProxyRequestNativeLocked(url, host);
if ((ret == null) || (ret.length() == 0)) {
Log.e(TAG, "v8 Proxy request failed.");
ret = null;
}
return ret;
|
private native java.lang.String | makeProxyRequestNativeLocked(java.lang.String url, java.lang.String host)
|
public synchronized boolean | setCurrentProxyScript(java.lang.String script)
if (setProxyScriptNativeLocked(script)) {
Log.e(TAG, "Unable to parse proxy script.");
return true;
}
return false;
|
private native boolean | setProxyScriptNativeLocked(java.lang.String script)
|
public synchronized boolean | startPacSupport()
if (createV8ParserNativeLocked()) {
Log.e(TAG, "Unable to Create v8 Proxy Parser.");
return true;
}
mIsActive = true;
return false;
|
public synchronized boolean | stopPacSupport()
if (mIsActive) {
if (destroyV8ParserNativeLocked()) {
Log.e(TAG, "Unable to Destroy v8 Proxy Parser.");
return true;
}
mIsActive = false;
}
return false;
|