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
    requestLogFormat = "%{HTTP_METHOD} %{REQ_URI}: HTTP/%{RESP_STATUS}" // defines log format, defaults to this if not specified
  },
  // 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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

    Permalink

    register module mappings

    register module mappings

    ctx

    Akkamo context

    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
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def logRequestResult(logLevel: String, logFormat: String, route: Route)(implicit ec: ExecutionContext): Route

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

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

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

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

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

    Permalink
    Definition Classes
    AkkaHttpModule → Runnable
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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