Class

eu.akkamo

AkkaHttpModule

Related Doc: package akkamo

Permalink

class AkkaHttpModule extends Module with Initializable with Runnable with Disposable

Module providing HTTP(S) server functionality, based on the Akka HTTP library.

Configuration example

akkamo.akkaHttp = {
  // complete configuration with several name aliases
  name1 = {
    aliases = ["alias1", "alias2"]
    port = 9000 // port, not mandatory
    protocol = "http" // http, https, ...
    host = "localhost" // host, default localhost
    akkaAlias = "alias" // not required, default is used if exists
    requestLogLevel = "info"  // defines level for request level logging. Default "off" means no logging
    RequestLogContentLength = 1024 // defines max content length in request log, default 0  to disable content logging
  },
  // configuration registered as default (only one instance is allowed)
  name2 = {
    default = true
    protocol = "http" // http, https, ...
  }
}

In example code above, working example of module configuration is shown. For each block inside the akkamo.akkaHttp, instance of RouteRegistry is registered to the Akkamo context both using its name (e.g. name1) and aliases (e.g. alias1) if provided. Injected instance of RouteRegistry can be then used to register own Akka HTTP routes.

See also

http://doc.akka.io/docs/akka/current/scala/http/

RouteRegistry

Linear Supertypes
Disposable, Runnable, Initializable, Module, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AkkaHttpModule
  2. Disposable
  3. Runnable
  4. Initializable
  5. Module
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AkkaHttpModule()

    Permalink

Type Members

  1. type HttpsConnectionContextFactory = (Config) ⇒ HttpsConnectionContext

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def dependencies(dependencies: Dependency): Dependency

    Permalink
    Definition Classes
    AkkaHttpModule → Module
  7. def dispose(ctx: Context): Res[Unit]

    Permalink
    Definition Classes
    AkkaHttpModule → Disposable
  8. def entityAsString(entity: HttpEntity)(implicit m: Materializer, ex: ExecutionContext): Future[String]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def iKey(): Class[_ <: Initializable]

    Permalink
    Definition Classes
    Initializable
  15. def initialize(ctx: Context, cfg: Config, log: LoggingAdapter): Try[Context]

    Permalink
  16. def initialize(ctx: Context): Res[Context]

    Permalink

    register module mappings

    register module mappings

    returns

    true if initialization is complete. In case of incomplete initialization system will call this method again. Incomplete initialization mean That component is not able to find all dependencies.

    Definition Classes
    AkkaHttpModule → Initializable
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def logRequestResult(levelStr: String, contentLength: Int, route: Route)(implicit m: Materializer, ex: ExecutionContext): Route

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def rKey(): Class[_ <: Runnable]

    Permalink
    Definition Classes
    Runnable
  23. def run(ctx: Context): Res[Context]

    Permalink
    Definition Classes
    AkkaHttpModule → Runnable
  24. def shortData(data: HttpEntity)(maxLength: Int): String

    Permalink
  25. def shortData(data: String)(maxLength: Int): String

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    Module → AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Disposable

Inherited from Runnable

Inherited from Initializable

Inherited from Module

Inherited from AnyRef

Inherited from Any

Ungrouped