public class ClientTransport$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ClientTransport$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ClientTransport$() |
Modifier and Type | Method and Description |
---|---|
ClientTransport |
httpsProxy(org.apache.pekko.actor.ActorSystem system)
Returns a
ClientTransport that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. |
ClientTransport |
httpsProxy(HttpCredentials proxyCredentials,
org.apache.pekko.actor.ActorSystem system)
Returns a
ClientTransport that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. |
ClientTransport |
httpsProxy(java.net.InetSocketAddress proxyAddress)
Returns a
ClientTransport that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. |
ClientTransport |
httpsProxy(java.net.InetSocketAddress proxyAddress,
HttpCredentials proxyCredentials)
Returns a
ClientTransport that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. |
ClientTransport |
TCP() |
ClientTransport |
withCustomResolver(scala.Function2<java.lang.String,java.lang.Object,scala.concurrent.Future<java.net.InetSocketAddress>> lookup)
Returns a
ClientTransport that allows to customize host name resolution. |
public static final ClientTransport$ MODULE$
public ClientTransport TCP()
public ClientTransport httpsProxy(java.net.InetSocketAddress proxyAddress)
ClientTransport
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.
proxyAddress
- (undocumented)public ClientTransport httpsProxy(org.apache.pekko.actor.ActorSystem system)
ClientTransport
that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method.
Pulls the host/port pair from the application.conf: pekko.client.proxy.https.{host, port}
system
- (undocumented)public ClientTransport httpsProxy(java.net.InetSocketAddress proxyAddress, HttpCredentials proxyCredentials)
ClientTransport
that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. This method also takes HttpCredentials
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.
proxyAddress
- (undocumented)proxyCredentials
- (undocumented)public ClientTransport httpsProxy(HttpCredentials proxyCredentials, org.apache.pekko.actor.ActorSystem system)
ClientTransport
that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. This method also takes HttpCredentials
in order to pass along to the proxy.
Pulls the host/port pair from the application.conf: pekko.client.proxy.https.{host, port}
proxyCredentials
- (undocumented)system
- (undocumented)public ClientTransport withCustomResolver(scala.Function2<java.lang.String,java.lang.Object,scala.concurrent.Future<java.net.InetSocketAddress>> lookup)
ClientTransport
that allows to customize host name resolution.lookup
- A function that will be called with hostname and port and that should (potentially asynchronously resolve the given host/port
to an InetSocketAddress