/**@class android.net.Proxy @extends java.lang.Object A convenience class for accessing the user and default proxy settings. */ var Proxy = { /** Used to notify an app that's caching the proxy that either the default connection has changed or any connection's proxy has changed. The new proxy should be queried using {@link android.net.ConnectivityManager#getDefaultProxy()}. <p class="note">This is a protected intent that can only be sent by the system */ PROXY_CHANGE_ACTION : "android.intent.action.PROXY_CHANGE", /** Intent extra included with {@link #PROXY_CHANGE_ACTION} intents. It describes the new proxy being used (as a {@link android.net.ProxyInfo} object). @deprecated Because {@code PROXY_CHANGE_ACTION} is sent whenever the proxy for any network on the system changes, applications should always use {@link android.net.ConnectivityManager#getDefaultProxy()} or {@link android.net.ConnectivityManager#getLinkProperties(Network)}.{@link android.net.LinkProperties#getHttpProxy()} to get the proxy for the Network(s) they are using. */ EXTRA_PROXY_INFO : "android.intent.extra.PROXY_INFO", /**@hide */ PROXY_VALID : "0", /**@hide */ PROXY_HOSTNAME_EMPTY : "1", /**@hide */ PROXY_HOSTNAME_INVALID : "2", /**@hide */ PROXY_PORT_EMPTY : "3", /**@hide */ PROXY_PORT_INVALID : "4", /**@hide */ PROXY_EXCLLIST_INVALID : "5", /**Return the proxy object to be used for the URL given as parameter. @param {Object {Context}} ctx A Context used to get the settings for the proxy host. @param {String} url A URL to be accessed. Used to evaluate exclusion list. @return {Object {java.net.Proxy}} Proxy (java.net) object containing the host name. If the user did not set a hostname it returns the default host. A null value means that no host is to be used. {@hide} */ getProxy : function( ) {}, /**Return the proxy host set by the user. @param {Object {Context}} ctx A Context used to get the settings for the proxy host. @return {String} String containing the host name. If the user did not set a host name it returns the default host. A null value means that no host is to be used. @deprecated Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list. */ getHost : function( ) {}, /**Return the proxy port set by the user. @param {Object {Context}} ctx A Context used to get the settings for the proxy port. @return {Number} The port number to use or -1 if no proxy is to be used. @deprecated Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list. */ getPort : function( ) {}, /**Return the default proxy host specified by the carrier. @return {String} String containing the host name or null if there is no proxy for this carrier. @deprecated Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list and no longer reports only mobile-data apn-based proxy values. */ getDefaultHost : function( ) {}, /**Return the default proxy port specified by the carrier. @return {Number} The port number to be used with the proxy host or -1 if there is no proxy for this carrier. @deprecated Use standard java vm proxy values to find the host, port and exclusion list. This call ignores the exclusion list and no longer reports only mobile-data apn-based proxy values. */ getDefaultPort : function( ) {}, /**Validate syntax of hostname, port and exclusion list entries {@hide} */ validate : function( ) {}, /** @hide */ setHttpProxySystemProperty : function( ) {}, /** @hide */ setHttpProxySystemProperty : function( ) {}, };