Server

play.core.server.Server
See theServer companion object
trait Server extends ReloadableServer

Provides generic server behaviour for Play applications.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def mainAddress: InetSocketAddress

Get the address of the server.

Get the address of the server.

Attributes

Returns

The address of the server.

def mode: Mode

Endpoints information for this server.

Endpoints information for this server.

Attributes

Concrete methods

Returns the HTTP port of the server.

Returns the HTTP port of the server.

This is useful when the port number has been automatically selected (by setting a port number of 0).

Attributes

Returns

The HTTP port the server is bound to, if the HTTP connector is enabled.

Returns the HTTPS port of the server.

Returns the HTTPS port of the server.

This is useful when the port number has been automatically selected (by setting a port number of 0).

Attributes

Returns

The HTTPS port the server is bound to, if the HTTPS connector is enabled.

def reload(): Unit
def stop(): Unit