trait DefaultNettyServerComponents extends NettyServerComponents with api.BuiltInComponents with NoHttpFiltersComponents
A convenient helper trait for constructing an NettyServer, for example:
val components = new DefaultNettyServerComponents { override lazy val router = { case GET(p"/") => Action(parse.json) { body => Ok("Hello") } } } val server = components.server
- Source
- NettyServer.scala
- Alphabetic
- By Inheritance
- DefaultNettyServerComponents
- NoHttpFiltersComponents
- BuiltInComponents
- PekkoTypedComponents
- PekkoComponents
- I18nComponents
- NettyServerComponents
- ServerComponents
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def router: Router
The router that's used to pass requests to the correct handler.
The router that's used to pass requests to the correct handler.
- Definition Classes
- BuiltInComponents
Concrete Value Members
- lazy val actorSystem: ActorSystem
- Definition Classes
- PekkoComponents
- lazy val application: api.Application
- Definition Classes
- BuiltInComponents
- lazy val applicationLifecycle: ApplicationLifecycle
- Definition Classes
- ServerComponents
- lazy val classicActorSystemProvider: ClassicActorSystemProvider
- Definition Classes
- PekkoComponents
- lazy val configuration: Configuration
- Definition Classes
- ServerComponents
- lazy val cookieSigner: CookieSigner
- Definition Classes
- BuiltInComponents
- lazy val coordinatedShutdown: CoordinatedShutdown
- Definition Classes
- PekkoComponents
- lazy val csrfTokenSigner: CSRFTokenSigner
- Definition Classes
- BuiltInComponents
- lazy val defaultActionBuilder: DefaultActionBuilder
- Definition Classes
- BuiltInComponents
- lazy val defaultBodyParser: BodyParser[AnyContent]
- Definition Classes
- BuiltInComponents
- def devContext: Option[DevContext]
Helper to interact with the Play build environment.
Helper to interact with the Play build environment. Only available in dev mode.
- Definition Classes
- BuiltInComponents
- lazy val environment: api.Environment
- Definition Classes
- ServerComponents
- implicit lazy val executionContext: ExecutionContext
- Definition Classes
- PekkoComponents
- lazy val fileMimeTypes: FileMimeTypes
- Definition Classes
- BuiltInComponents
- lazy val httpConfiguration: HttpConfiguration
- Definition Classes
- BuiltInComponents → I18nComponents
- lazy val httpErrorHandler: HttpErrorHandler
- Definition Classes
- BuiltInComponents
- val httpFilters: Seq[EssentialFilter]
- Definition Classes
- NoHttpFiltersComponents
- lazy val httpRequestHandler: HttpRequestHandler
- Definition Classes
- BuiltInComponents
- lazy val injector: Injector
The runtime Injector instance provided to the DefaultApplication.
The runtime Injector instance provided to the DefaultApplication. This injector is set up to allow existing (deprecated) legacy APIs to function. It is not set up to support injecting arbitrary Play components.
- Definition Classes
- BuiltInComponents
- lazy val langs: Langs
- Definition Classes
- I18nComponents
- implicit lazy val materializer: Materializer
- Definition Classes
- PekkoComponents
- lazy val messagesApi: MessagesApi
- Definition Classes
- I18nComponents
- lazy val playBodyParsers: PlayBodyParsers
- Definition Classes
- BuiltInComponents
- lazy val requestFactory: RequestFactory
- Definition Classes
- BuiltInComponents
- implicit lazy val scheduler: Scheduler
- Definition Classes
- PekkoTypedComponents
- lazy val server: NettyServer
- Definition Classes
- NettyServerComponents → ServerComponents
- lazy val serverConfig: ServerConfig
- Definition Classes
- ServerComponents
- def serverStopHook: () => Future[Unit]
- Definition Classes
- ServerComponents
- lazy val tempFileCreator: TemporaryFileCreator
- Definition Classes
- BuiltInComponents
- lazy val tempFileReaper: TemporaryFileReaper
- Definition Classes
- BuiltInComponents
- def webCommands: WebCommands
Commands that intercept requests before the rest of the application handles them.
Commands that intercept requests before the rest of the application handles them. Used by Evolutions.
- Definition Classes
- BuiltInComponents
Deprecated Value Members
- lazy val javaContextComponents: JavaContextComponents
- Definition Classes
- BuiltInComponents
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.0) Use the corresponding methods that provide MessagesApi, Langs, FileMimeTypes or HttpConfiguration
- def sourceMapper: Option[SourceMapper]
Helper to locate the source code for the application.
Helper to locate the source code for the application. Only available in dev mode.
- Definition Classes
- BuiltInComponents
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) Use devContext.map(_.sourceMapper) instead