Package org.apache.pekko.http.javadsl
Class ConnectHttp
java.lang.Object
org.apache.pekko.http.javadsl.ConnectHttp
- Direct Known Subclasses:
- ConnectHttpImpl,- ConnectWithHttps
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract Optional<HttpsConnectionContext>final ConnectionContexteffectiveConnectionContext(ConnectionContext fallbackContext) final HttpsConnectionContexteffectiveHttpsConnectionContext(HttpsConnectionContext fallbackContext) abstract Stringhost()abstract booleanisHttps()abstract intport()static ConnectHttpExtract HTTP or HTTPS connection data from given host.static ConnectHttpExtracts HTTP or HTTPS connection data from given host and port.static ConnectHttpExtracts HTTP or HTTPS connection data from given Uri.static ConnectWithHttpstoHostHttps(String host) Extracts HTTPS connection data from given host and port.static ConnectWithHttpstoHostHttps(String host, int port) Extracts HTTPS connection data from given host and port, using the default HTTPS context.static ConnectWithHttpstoHostHttps(Uri uriHost) Extracts HTTPS connection data from given host and port.toString()
- 
Constructor Details- 
ConnectHttppublic ConnectHttp()
 
- 
- 
Method Details- 
toHostExtracts HTTP or HTTPS connection data from given Uri.
- 
toHostExtract HTTP or HTTPS connection data from given host.The host string may contain a URI or a : pair. - Parameters:
- host- (undocumented)
- Returns:
- (undocumented)
 
- 
toHostExtracts HTTP or HTTPS connection data from given host and port.The host string may contain a URI or a : pair. In both cases the port is ignored. 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.- Parameters:
- host- (undocumented)
- port- (undocumented)
- Returns:
- (undocumented)
 
- 
toHostHttpsExtracts HTTPS connection data from given host and port.Uses the default HTTPS context. - Parameters:
- uriHost- (undocumented)
- Returns:
- (undocumented)
- Throws:
- IllegalArgumentException
 
- 
toHostHttpsExtracts HTTPS connection data from given host and port.The host string may contain a URI or a : pair. Uses the default HTTPS context. - Parameters:
- host- (undocumented)
- Returns:
- (undocumented)
- Throws:
- IllegalArgumentException
 
- 
toHostHttpsExtracts HTTPS connection data from given host and port, using the default HTTPS context.The host string may contain a URI or a : pair. In both cases the port is ignored. 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 org.apache.pekko.http.javadsl.Http.ServerBinding.Uses the default HTTPS context. - Parameters:
- host- (undocumented)
- port- (undocumented)
- Returns:
- (undocumented)
- Throws:
- IllegalArgumentException
 
- 
host
- 
portpublic abstract int port()
- 
isHttpspublic abstract boolean isHttps()
- 
connectionContext
- 
effectiveHttpsConnectionContextpublic final HttpsConnectionContext effectiveHttpsConnectionContext(HttpsConnectionContext fallbackContext) 
- 
effectiveConnectionContext
- 
toString
 
-