Class ProxyOptions

java.lang.Object
org.apache.tinkerpop.gremlin.driver.ProxyOptions

public final class ProxyOptions extends Object
Describes an HTTP proxy that the driver routes connections through. When configured on the Cluster.Builder via Cluster.Builder.proxy(ProxyOptions) a Netty HttpProxyHandler is inserted into the pipeline before the SSL handler so that the CONNECT tunnel is established prior to the TLS handshake.
  • Method Details

    • create

      public static ProxyOptions create(String host, int port)
      Creates a proxy configuration for the given host and port without authentication.
    • create

      public static ProxyOptions create(String host, int port, String username, String password)
      Creates a proxy configuration for the given host and port using basic proxy authentication.
    • create

      public static ProxyOptions create(SocketAddress address)
      Creates a proxy configuration for the given address without authentication.
    • create

      public static ProxyOptions create(SocketAddress address, String username, String password)
      Creates a proxy configuration for the given address using basic proxy authentication.
    • getAddress

      public SocketAddress getAddress()
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • hasCredentials

      public boolean hasCredentials()
      Determines if basic proxy authentication credentials were supplied.