Package akka.http.javadsl
Class ConnectionContext
- java.lang.Object
-
- akka.http.javadsl.ConnectionContext
-
- Direct Known Subclasses:
HttpConnectionContext
,HttpsConnectionContext
public abstract class ConnectionContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConnectionContext()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static HttpsConnectionContext
httpsClient(akka.japi.function.Function2<java.lang.String,java.lang.Integer,javax.net.ssl.SSLEngine> createEngine)
If you want complete control over how to create the SSLEngine you can use this method.static HttpsConnectionContext
httpsClient(javax.net.ssl.SSLContext sslContext)
Creates an HttpsConnectionContext for client-side use from the given SSLContext.static HttpsConnectionContext
httpsServer(akka.japi.function.Creator<javax.net.ssl.SSLEngine> createEngine)
If you want complete control over how to create the SSLEngine you can use this method.static HttpsConnectionContext
httpsServer(javax.net.ssl.SSLContext sslContext)
Creates an HttpsConnectionContext for server-side use from the given SSLContext.abstract boolean
isSecure()
static HttpConnectionContext
noEncryption()
Used to serve HTTP traffic.
-
-
-
Method Detail
-
httpsServer
public static HttpsConnectionContext httpsServer(javax.net.ssl.SSLContext sslContext)
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<javax.net.ssl.SSLEngine> createEngine)
If you want complete control over how to create the SSLEngine you can use this method.- Parameters:
createEngine
- (undocumented)- Returns:
- (undocumented)
-
httpsClient
public static HttpsConnectionContext httpsClient(javax.net.ssl.SSLContext sslContext)
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<java.lang.String,java.lang.Integer,javax.net.ssl.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)
-
noEncryption
public static HttpConnectionContext noEncryption()
Used to serve HTTP traffic.
-
isSecure
public abstract boolean isSecure()
-
-