Uses of Class
java.net.ProxySelector
Packages that useProxySelector
Package
Description
Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
Uses ofProxySelector injava.net
Methods injava.net that returnProxySelectorModifier and TypeMethodDescriptionstaticProxySelectorProxySelector.getDefault()Gets the system-wide proxy selector.staticProxySelectorProxySelector.of(InetSocketAddress proxyAddress) Returns a ProxySelector which uses the given proxy address for all HTTP and HTTPS requests.Methods injava.net with parameters of typeProxySelectorModifier and TypeMethodDescriptionstatic voidProxySelector.setDefault(ProxySelector ps) Sets (or unsets) the system-wide proxy selector.Uses ofProxySelector injava.net.http
Fields injava.net.http declared asProxySelectorModifier and TypeFieldDescriptionstatic finalProxySelectorHttpClient.Builder.NO_PROXYA proxy selector that always returnProxy.NO_PROXYimplying a direct connection.Methods injava.net.http that return types with arguments of typeProxySelectorModifier and TypeMethodDescriptionabstractOptional<ProxySelector> HttpClient.proxy()Returns anOptionalcontaining theProxySelectorsupplied to this client.Methods injava.net.http with parameters of typeProxySelectorModifier and TypeMethodDescriptionHttpClient.Builder.proxy(ProxySelector proxySelector) Sets aProxySelector.