public class ConnectHttp$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ConnectHttp$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ConnectHttp$() |
Modifier and Type | Method and Description |
---|---|
ConnectHttp |
toHost(java.lang.String host)
Extract HTTP or HTTPS connection data from given host.
|
ConnectHttp |
toHost(java.lang.String host,
int port)
Extracts HTTP or HTTPS connection data from given host and port.
|
ConnectHttp |
toHost(Uri uriHost)
Extracts HTTP or HTTPS connection data from given Uri.
|
ConnectWithHttps |
toHostHttps(java.lang.String host)
Extracts HTTPS connection data from given host and port.
|
ConnectWithHttps |
toHostHttps(java.lang.String host,
int port)
Extracts HTTPS connection data from given host and port, using the default HTTPS context.
|
ConnectWithHttps |
toHostHttps(Uri uriHost)
Extracts HTTPS connection data from given host and port.
|
public static final ConnectHttp$ MODULE$
public ConnectHttp toHost(Uri uriHost)
public ConnectHttp toHost(java.lang.String host)
The host string may contain a URI or a
host
- (undocumented)public ConnectHttp toHost(java.lang.String host, int port)
The host string may contain a URI or a
If the given port is 0, a new local port will be assigned by the operating system,
which can then be retrieved by the materialized pekko.http.javadsl.Http.ServerBinding
.
host
- (undocumented)port
- (undocumented)public ConnectWithHttps toHostHttps(Uri uriHost) throws java.lang.IllegalArgumentException
Uses the default HTTPS context.
uriHost
- (undocumented)java.lang.IllegalArgumentException
public ConnectWithHttps toHostHttps(java.lang.String host) throws java.lang.IllegalArgumentException
The host string may contain a URI or a
Uses the default HTTPS context.
host
- (undocumented)java.lang.IllegalArgumentException
public ConnectWithHttps toHostHttps(java.lang.String host, int port) throws java.lang.IllegalArgumentException
The host string may contain a URI or a
If the given port is 0, a new local port will be assigned by the operating system,
which can then be retrieved by the materialized
Uses the default HTTPS context.org.apache.pekko.http.javadsl.Http.ServerBinding
.
host
- (undocumented)port
- (undocumented)java.lang.IllegalArgumentException