Package org.apache.pekko.http.javadsl
Class ConnectionContext
java.lang.Object
org.apache.pekko.http.javadsl.ConnectionContext
- Direct Known Subclasses:
- HttpConnectionContext,- HttpsConnectionContext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic HttpsConnectionContexthttpsClient(SSLContext sslContext) Creates an HttpsConnectionContext for client-side use from the given SSLContext.static HttpsConnectionContexthttpsClient(org.apache.pekko.japi.function.Function2<String, Integer, SSLEngine> createEngine) If you want complete control over how to create the SSLEngine you can use this method.static HttpsConnectionContexthttpsServer(SSLContext sslContext) Creates an HttpsConnectionContext for server-side use from the given SSLContext.static HttpsConnectionContexthttpsServer(org.apache.pekko.japi.function.Creator<SSLEngine> createEngine) If you want complete control over how to create the SSLEngine you can use this method.abstract booleanisSecure()static HttpConnectionContextUsed to serve HTTP traffic.
- 
Constructor Details- 
ConnectionContextpublic ConnectionContext()
 
- 
- 
Method Details- 
httpsServerCreates an HttpsConnectionContext for server-side use from the given SSLContext.- Parameters:
- sslContext- (undocumented)
- Returns:
- (undocumented)
 
- 
httpsServerpublic static HttpsConnectionContext httpsServer(org.apache.pekko.japi.function.Creator<SSLEngine> createEngine) If you want complete control over how to create the SSLEngine you can use this method.- Parameters:
- createEngine- (undocumented)
- Returns:
- (undocumented)
 
- 
httpsClientCreates an HttpsConnectionContext for client-side use from the given SSLContext.- Parameters:
- sslContext- (undocumented)
- Returns:
- (undocumented)
 
- 
httpsClientpublic static HttpsConnectionContext httpsClient(org.apache.pekko.japi.function.Function2<String, Integer, SSLEngine> createEngine) If you want complete control over how to create the SSLEngine you can use this method.Note that this means it is up to you to make sure features like SNI and hostname verification are enabled as needed. - Parameters:
- createEngine- (undocumented)
- Returns:
- (undocumented)
 
- 
noEncryptionUsed to serve HTTP traffic.
- 
isSecurepublic abstract boolean isSecure()
 
-