Uses of Class
java.net.ProxySelector
Package
Description
Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
-
Uses of ProxySelector in java.net
Modifier and TypeMethodDescriptionstatic ProxySelector
ProxySelector.getDefault()
Gets the system-wide proxy selector.static ProxySelector
ProxySelector.of
(InetSocketAddress proxyAddress) Returns a ProxySelector which uses the given proxy address for all HTTP and HTTPS requests.Modifier and TypeMethodDescriptionstatic void
ProxySelector.setDefault
(ProxySelector ps) Sets (or unsets) the system-wide proxy selector. -
Uses of ProxySelector in java.net.http
Modifier and TypeFieldDescriptionstatic final ProxySelector
HttpClient.Builder.NO_PROXY
A proxy selector that always returnProxy.NO_PROXY
implying a direct connection.Modifier and TypeMethodDescriptionabstract Optional<ProxySelector>
HttpClient.proxy()
Returns anOptional
containing theProxySelector
supplied to this client.Modifier and TypeMethodDescriptionHttpClient.Builder.proxy
(ProxySelector proxySelector) Sets aProxySelector
.