Class ProxyOptions
- java.lang.Object
-
- io.opentelemetry.sdk.common.export.ProxyOptions
-
public final class ProxyOptions extends java.lang.Object
Configuration for proxy settings.- Since:
- 1.36.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ProxyOptions.SimpleProxySelector
-
Field Summary
Fields Modifier and Type Field Description private java.net.ProxySelector
proxySelector
-
Constructor Summary
Constructors Modifier Constructor Description private
ProxyOptions(java.net.ProxySelector proxySelector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProxyOptions
create(java.net.InetSocketAddress socketAddress)
Create proxy options with aProxySelector
which always uses anProxy.Type.HTTP
proxy with thesocketAddress
.static ProxyOptions
create(java.net.ProxySelector proxySelector)
Create proxy options with theproxySelector
.java.net.ProxySelector
getProxySelector()
Return theProxySelector
.java.lang.String
toString()
-
-
-
Method Detail
-
create
public static ProxyOptions create(java.net.ProxySelector proxySelector)
Create proxy options with theproxySelector
.
-
create
public static ProxyOptions create(java.net.InetSocketAddress socketAddress)
Create proxy options with aProxySelector
which always uses anProxy.Type.HTTP
proxy with thesocketAddress
.
-
getProxySelector
public java.net.ProxySelector getProxySelector()
Return theProxySelector
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-