Package akka.http.javadsl
Class ConnectionContext
java.lang.Object
akka.http.javadsl.ConnectionContext
- Direct Known Subclasses:
HttpConnectionContext
,HttpsConnectionContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpsConnectionContext
https
(SSLContext sslContext) Deprecated.use httpsServer, httpsClient or the method that takes a custom factory.static HttpsConnectionContext
https
(SSLContext sslContext, Optional<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig, Optional<Collection<String>> enabledCipherSuites, Optional<Collection<String>> enabledProtocols, Optional<akka.stream.TLSClientAuth> clientAuth, Optional<SSLParameters> sslParameters) Deprecated.use httpsServer, httpsClient or the method that takes a custom factory.static HttpsConnectionContext
https
(SSLContext sslContext, Optional<Collection<String>> enabledCipherSuites, Optional<Collection<String>> enabledProtocols, Optional<akka.stream.TLSClientAuth> clientAuth, Optional<SSLParameters> sslParameters) Deprecated.use httpsServer, httpsClient or the method that takes a custom factory.static HttpsConnectionContext
httpsClient
(akka.japi.function.Function2<String, Integer, SSLEngine> createEngine) If you want complete control over how to create the SSLEngine you can use this method.static HttpsConnectionContext
httpsClient
(SSLContext sslContext) Creates an HttpsConnectionContext for client-side use from the given SSLContext.static HttpsConnectionContext
httpsServer
(akka.japi.function.Creator<SSLEngine> createEngine) If you want complete control over how to create the SSLEngine you can use this method.static HttpsConnectionContext
httpsServer
(SSLContext sslContext) Creates an HttpsConnectionContext for server-side use from the given SSLContext.abstract boolean
isSecure()
static HttpConnectionContext
Used to serve HTTP traffic.abstract scala.Option<com.typesafe.sslconfig.akka.AkkaSSLConfig>
Deprecated.Not always available.
-
Constructor Details
-
ConnectionContext
public ConnectionContext()
-
-
Method Details
-
httpsServer
Creates an HttpsConnectionContext for server-side use from the given SSLContext.- Parameters:
sslContext
- (undocumented)- Returns:
- (undocumented)
-
httpsServer
public static HttpsConnectionContext httpsServer(akka.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)
-
httpsClient
Creates an HttpsConnectionContext for client-side use from the given SSLContext.- Parameters:
sslContext
- (undocumented)- Returns:
- (undocumented)
-
httpsClient
public static HttpsConnectionContext httpsClient(akka.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)
-
https
Deprecated.use httpsServer, httpsClient or the method that takes a custom factory. Since 10.2.0. -
https
public static HttpsConnectionContext https(SSLContext sslContext, Optional<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig, Optional<Collection<String>> enabledCipherSuites, Optional<Collection<String>> enabledProtocols, Optional<akka.stream.TLSClientAuth> clientAuth, Optional<SSLParameters> sslParameters) Deprecated.use httpsServer, httpsClient or the method that takes a custom factory. Since 10.2.0. -
https
public static HttpsConnectionContext https(SSLContext sslContext, Optional<Collection<String>> enabledCipherSuites, Optional<Collection<String>> enabledProtocols, Optional<akka.stream.TLSClientAuth> clientAuth, Optional<SSLParameters> sslParameters) Deprecated.use httpsServer, httpsClient or the method that takes a custom factory. Since 10.2.0. -
noEncryption
Used to serve HTTP traffic. -
isSecure
public abstract boolean isSecure() -
sslConfig
public abstract scala.Option<com.typesafe.sslconfig.akka.AkkaSSLConfig> sslConfig()Deprecated.Not always available. Since 10.2.0.
-