Uses of Class
java.net.Proxy
| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal.http | |
| java.net | |
| libcore.net.url | |
| org.apache.http.impl.conn |
-
Uses of Proxy in com.squareup.okhttp
Methods in com.squareup.okhttp that return Proxy Modifier and Type Method Description ProxyAddress. getProxy()Returns this address's explicitly-specified HTTP proxy, or null to delegate to the HTTP client's proxy selector.ProxyOkHttpClient. getProxy()ProxyRoute. getProxy()Returns theProxyof this route.Methods in com.squareup.okhttp with parameters of type Proxy Modifier and Type Method Description OkAuthenticator.CredentialOkAuthenticator. authenticate(Proxy proxy, URL url, List<OkAuthenticator.Challenge> challenges)Returns a credential that satisfies the authentication challenge made byurl.OkAuthenticator.CredentialOkAuthenticator. authenticateProxy(Proxy proxy, URL url, List<OkAuthenticator.Challenge> challenges)Returns a credential that satisfies the authentication challenge made byproxy.protected OkHttpClientHttpHandler. newOkHttpClient(Proxy proxy)protected OkHttpClientHttpsHandler. newOkHttpClient(Proxy proxy)protected URLConnectionHttpHandler. openConnection(URL url, Proxy proxy)OkHttpClientOkHttpClient. setProxy(Proxy proxy)Sets the HTTP proxy that will be used by connections created by this client.Constructors in com.squareup.okhttp with parameters of type Proxy Constructor Description Address(String uriHost, int uriPort, SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier, OkAuthenticator authenticator, Proxy proxy, List<String> transports)Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress, boolean modernTls) -
Uses of Proxy in com.squareup.okhttp.internal.http
Methods in com.squareup.okhttp.internal.http with parameters of type Proxy Modifier and Type Method Description static booleanHttpAuthenticator. processAuthHeader(OkAuthenticator authenticator, int responseCode, RawHeaders responseHeaders, RawHeaders successorRequestHeaders, Proxy proxy, URL url)React to a failed authorization response by looking up new credentials.voidHttpURLConnectionImpl. setSelectedProxy(Proxy proxy)voidPolicy. setSelectedProxy(Proxy proxy)Sets the current proxy that this connection is using. -
Uses of Proxy in java.net
Fields in java.net declared as Proxy Modifier and Type Field Description static ProxyProxy. NO_PROXYRepresents the proxy type settingProxy.Type.DIRECT.Methods in java.net that return types with arguments of type Proxy Modifier and Type Method Description abstract List<Proxy>ProxySelector. select(URI uri)Returns the proxy servers to use on connections touri.Methods in java.net with parameters of type Proxy Modifier and Type Method Description URLConnectionURL. openConnection(Proxy proxy)Returns a new connection to the resource referred to by this URL.protected URLConnectionURLStreamHandler. openConnection(URL u, Proxy proxy)Establishes a new connection to the resource specified by the URLuusing the givenproxy. -
Uses of Proxy in libcore.net.url
Methods in libcore.net.url with parameters of type Proxy Modifier and Type Method Description URLConnectionFileHandler. openConnection(URL url, Proxy proxy)The behavior of this method is the same as openConnection(URL).protected URLConnectionFtpHandler. openConnection(URL url, Proxy proxy)Returns a connection, which is established via theproxy, to the FTP server specified by thisURL.Constructors in libcore.net.url with parameters of type Proxy Constructor Description FtpURLConnection(URL url, Proxy proxy)FtpURLConnection constructor. -
Uses of Proxy in org.apache.http.impl.conn
Methods in org.apache.http.impl.conn that return Proxy Modifier and Type Method Description protected ProxyProxySelectorRoutePlanner. chooseProxy(List<Proxy> proxies, HttpHost target, HttpRequest request, HttpContext context)Method parameters in org.apache.http.impl.conn with type arguments of type Proxy Modifier and Type Method Description protected ProxyProxySelectorRoutePlanner. chooseProxy(List<Proxy> proxies, HttpHost target, HttpRequest request, HttpContext context)