Class ConnectionContext$


  • public class ConnectionContext$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ConnectionContext$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      HttpsConnectionContext httpsClient​(javax.net.ssl.SSLContext sslContext)
      Creates an HttpsConnectionContext for client-side use from the given SSLContext.
      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.
      HttpsConnectionContext httpsServer​(javax.net.ssl.SSLContext sslContext)
      Creates an HttpsConnectionContext for server-side use from the given SSLContext.
      HttpConnectionContext noEncryption()
      Used to serve HTTP traffic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final ConnectionContext$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ConnectionContext$

        public ConnectionContext$()
    • Method Detail

      • httpsServer

        public 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 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 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 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)