c

play.core.server

ServerEndpoint

final case class ServerEndpoint(description: String, scheme: String, host: String, port: Int, protocols: Set[String], serverAttribute: Option[String], ssl: Option[SSLContext]) extends Product with Serializable

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.

Annotations
@ApiMayChange()
Source
ServerEndpoint.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerEndpoint
  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 ServerEndpoint(description: String, scheme: String, host: String, port: Int, protocols: Set[String], serverAttribute: Option[String], ssl: Option[SSLContext])

Value Members

  1. val description: String
  2. val host: String
  3. def pathUrl(path: String): String

    Create a full URL out of a path.

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

  4. val port: Int
  5. def productElementNames: Iterator[String]
    Definition Classes
    Product
  6. val protocols: Set[String]
  7. val scheme: String
  8. val serverAttribute: Option[String]
  9. val ssl: Option[SSLContext]
  10. def wsPathUrl(path: String): String

    Create a full WebSocket URL out of a path.

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