Class ClientTransport$
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ClientTransport$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhttpsProxy
(akka.actor.ActorSystem system) Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method.httpsProxy
(HttpCredentials proxyCredentials, akka.actor.ActorSystem system) Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method.httpsProxy
(InetSocketAddress proxyAddress) Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method.httpsProxy
(InetSocketAddress proxyAddress, HttpCredentials proxyCredentials) Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method.TCP()
withCustomResolver
(scala.Function2<String, Object, scala.concurrent.Future<InetSocketAddress>> lookup) Returns aClientTransport
that allows to customize host name resolution.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
ClientTransport$
public ClientTransport$()
-
-
Method Details
-
TCP
-
httpsProxy
Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method.An HTTP(S) proxy is a proxy that will create one TCP connection to the HTTP(S) proxy for each target connection. The proxy transparently forwards the TCP connection to the target host.
For more information about HTTP CONNECT tunnelling see https://tools.ietf.org/html/rfc7231#section-4.3.6.
- Parameters:
proxyAddress
- (undocumented)- Returns:
- (undocumented)
-
httpsProxy
Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method.Pulls the host/port pair from the application.conf: akka.client.proxy.https.{host, port}
- Parameters:
system
- (undocumented)- Returns:
- (undocumented)
-
httpsProxy
Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method. This method also takesHttpCredentials
in order to pass along to the proxy.An HTTP(S) proxy is a proxy that will create one TCP connection to the HTTP(S) proxy for each target connection. The proxy transparently forwards the TCP connection to the target host.
For more information about HTTP CONNECT tunnelling see https://tools.ietf.org/html/rfc7231#section-4.3.6.
- Parameters:
proxyAddress
- (undocumented)proxyCredentials
- (undocumented)- Returns:
- (undocumented)
-
httpsProxy
Returns aClientTransport
that runs all connection through the given HTTP(S) proxy using the HTTP CONNECT method. This method also takesHttpCredentials
in order to pass along to the proxy.Pulls the host/port pair from the application.conf: akka.client.proxy.https.{host, port}
- Parameters:
proxyCredentials
- (undocumented)system
- (undocumented)- Returns:
- (undocumented)
-
withCustomResolver
public ClientTransport withCustomResolver(scala.Function2<String, Object, scala.concurrent.Future<InetSocketAddress>> lookup) Returns aClientTransport
that allows to customize host name resolution.- Parameters:
lookup
- A function that will be called with hostname and port and that should (potentially asynchronously resolve the given host/port to anInetSocketAddress
- Returns:
- (undocumented)
-