ServerEndpoint

play.core.server.ServerEndpoint
@ApiMayChange
final case class ServerEndpoint(description: String, scheme: String, host: String, port: Int, protocols: Set[String], serverAttribute: Option[String], ssl: Option[SSLContext])

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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def pathUrl(path: String): String

Create a full URL out of a path. E.g. a path of /foo becomes http://localhost:12345/foo

Create a full URL out of a path. E.g. a path of /foo becomes http://localhost:12345/foo

Attributes

def wsPathUrl(path: String): String

Create a full WebSocket URL out of a path. E.g. a path of /foo becomes ws://localhost:12345/foo

Create a full WebSocket URL out of a path. E.g. a path of /foo becomes ws://localhost:12345/foo

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product