Class ProxyOptions


  • public final class ProxyOptions
    extends java.lang.Object
    Configuration for proxy settings.
    Since:
    1.36.0
    • 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 a ProxySelector which always uses an Proxy.Type.HTTP proxy with the socketAddress.
      static ProxyOptions create​(java.net.ProxySelector proxySelector)
      Create proxy options with the proxySelector.
      java.net.ProxySelector getProxySelector()
      Return the ProxySelector.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • proxySelector

        private final java.net.ProxySelector proxySelector
    • Constructor Detail

      • ProxyOptions

        private ProxyOptions​(java.net.ProxySelector proxySelector)
    • Method Detail

      • create

        public static ProxyOptions create​(java.net.ProxySelector proxySelector)
        Create proxy options with the proxySelector.
      • create

        public static ProxyOptions create​(java.net.InetSocketAddress socketAddress)
        Create proxy options with a ProxySelector which always uses an Proxy.Type.HTTP proxy with the socketAddress.
      • getProxySelector

        public java.net.ProxySelector getProxySelector()
        Return the ProxySelector.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object