public abstract class ClientTransport
extends java.lang.Object
Constructor and Description |
---|
ClientTransport() |
Modifier and Type | Method and Description |
---|---|
abstract akka.stream.javadsl.Flow<akka.util.ByteString,akka.util.ByteString,java.util.concurrent.CompletionStage<OutgoingConnection>> |
connectTo(java.lang.String host,
int port,
ClientConnectionSettings settings,
akka.actor.ActorSystem system) |
static ClientTransport |
fromScala(ClientTransport scalaTransport) |
static ClientTransport |
httpsProxy(java.net.InetSocketAddress proxyAddress)
Returns a
ClientTransport that runs all connection through the given HTTP(S) proxy using the
HTTP CONNECT method. |
static 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. |
static ClientTransport |
TCP() |
static ClientTransport |
toScala(ClientTransport javaTransport) |
public static ClientTransport TCP()
public static 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 static 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 call also takes HttpCredentials
to base proxy credentials along with
the request.
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 static ClientTransport fromScala(ClientTransport scalaTransport)
public static ClientTransport toScala(ClientTransport javaTransport)
public abstract akka.stream.javadsl.Flow<akka.util.ByteString,akka.util.ByteString,java.util.concurrent.CompletionStage<OutgoingConnection>> connectTo(java.lang.String host, int port, ClientConnectionSettings settings, akka.actor.ActorSystem system)