Class ProxyOptions
java.lang.Object
org.apache.tinkerpop.gremlin.driver.ProxyOptions
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 Summary
Modifier and TypeMethodDescriptionstatic ProxyOptionsCreates a proxy configuration for the given host and port without authentication.static ProxyOptionsCreates a proxy configuration for the given host and port using basic proxy authentication.static ProxyOptionscreate(SocketAddress address) Creates a proxy configuration for the given address without authentication.static ProxyOptionscreate(SocketAddress address, String username, String password) Creates a proxy configuration for the given address using basic proxy authentication.booleanDetermines if basic proxy authentication credentials were supplied.
-
Method Details
-
create
Creates a proxy configuration for the given host and port without authentication. -
create
Creates a proxy configuration for the given host and port using basic proxy authentication. -
create
Creates a proxy configuration for the given address without authentication. -
create
Creates a proxy configuration for the given address using basic proxy authentication. -
getAddress
-
getUsername
-
getPassword
-
hasCredentials
public boolean hasCredentials()Determines if basic proxy authentication credentials were supplied.
-