Packages

case class TestServer(config: ServerConfig, application: Application, serverProvider: Option[ServerProvider]) extends Product with Serializable

A test web server.

config

The server configuration.

application

The Application to load in this server.

serverProvider

The type of server to use. If not provided, uses Play's default provider.

Source
TestServer.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestServer
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TestServer(config: ServerConfig, application: Application, serverProvider: Option[ServerProvider])

    config

    The server configuration.

    application

    The Application to load in this server.

    serverProvider

    The type of server to use. If not provided, uses Play's default provider.

Value Members

  1. val application: Application
  2. val config: ServerConfig
  3. def isRunning: Boolean

    True if the server is running either on HTTP or HTTPS port.

    True if the server is running either on HTTP or HTTPS port.

    Annotations
    @ApiMayChange()
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product
  5. def runningHttpPort: Option[Int]

    The HTTP port that the server is running on.

  6. def runningHttpsPort: Option[Int]

    The HTTPS port that the server is running on.

  7. val serverProvider: Option[ServerProvider]
  8. def start(): Unit

    Starts this server.

  9. def stop(): Unit

    Stops this server.