play.core.server
Members list
Type members
Classlikes
Used to start servers in 'dev' mode, a mode where the application is reloaded whenever its source changes.
Used to start servers in 'dev' mode, a mode where the application is reloaded whenever its source changes.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DevServerStart.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Used to start servers in 'prod' mode, the mode that is used in production. The application is loaded and started immediately.
Used to start servers in 'prod' mode, the mode that is used in production. The application is loaded and started immediately.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProdServerStart.type
A ServerProcess that wraps a real JVM process. Calls have a real effect on the JVM, e.g. exit calls System.exit.
A ServerProcess that wraps a real JVM process. Calls have a real effect on the JVM, e.g. exit calls System.exit.
Attributes
- Supertypes
Contains a statically initialized self-signed certificate.
Contains a statically initialized self-signed certificate.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SelfSigned.type
An SSLEngineProvider which simply references the values in the SelfSigned object.
An SSLEngineProvider which simply references the values in the SelfSigned object.
Attributes
- Supertypes
Provides generic server behaviour for Play applications.
Components to create a Server instance.
Components to create a Server instance.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Common configuration for servers such as NettyServer.
Common configuration for servers such as NettyServer.
Value parameters
- address
-
The socket address to bind to.
- configuration
-
The configuration to use for loading the server. This is not the same as application configuration. This configuration is usually loaded from a server.conf file, whereas the application configuration is usually loaded from an application.conf file.
- mode
-
The run mode: dev, test or prod.
- port
-
The HTTP port to use.
- rootDir
-
The root directory of the server. Used to find default locations of files, log directories, etc.
- sslPort
-
The HTTPS port to use.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
ServerConfig.type
Contains information about which port and protocol can be used to connect to the server. This class is used to abstract out the details of connecting to different backends and protocols. Most tests will operate the same no matter which endpoint they are connected to.
Contains information about which port and protocol can be used to connect to the server. This class is used to abstract out the details of connecting to different backends and protocols. Most tests will operate the same no matter which endpoint they are connected to.
Attributes
- Supertypes
Wrapper for a sequence of ServerEndpoints. Has a few convenience methods. Also can be used as an implicit parameter to pass around server endpoint information.
Wrapper for a sequence of ServerEndpoints. Has a few convenience methods. Also can be used as an implicit parameter to pass around server endpoint information.
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
ServerEndpoints.type
This exception is thrown when the server is unable to listen on a port
This exception is thrown when the server is unable to listen on a port
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Abstracts a JVM process so it can be mocked for testing or to isolate pseudo-processes within a VM. Code using this class should use the methods in this class instead of methods like System.getProperties(), System.exit(), etc.
Abstracts a JVM process so it can be mocked for testing or to isolate pseudo-processes within a VM. Code using this class should use the methods in this class instead of methods like System.getProperties(), System.exit(), etc.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class RealServerProcess
An object that knows how to obtain a server. Instantiating a ServerProvider object should be fast and side-effect free. Any actual work that a ServerProvider needs to do should be delayed until the createServer method is called.
An object that knows how to obtain a server. Instantiating a ServerProvider object should be fast and side-effect free. Any actual work that a ServerProvider needs to do should be delayed until the createServer method is called.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ServerProvider.type
Indicates an issue with starting a server, e.g. a problem reading its configuration.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any