Packages

case class Call(method: String, url: String, fragment: String = null) extends mvc.Call with Product with Serializable

Defines a Call, which describes an HTTP request and can be used to create links or fill redirect data.

These values are usually generated by the reverse router.

method

the request HTTP method

url

the request URL

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

Instance Constructors

  1. new Call(method: String, url: String, fragment: String = null)

    method

    the request HTTP method

    url

    the request URL

Value Members

  1. def absoluteURL(secure: Boolean)(implicit request: RequestHeader): String

    Transform this call to an absolute URL.

  2. def absoluteURL()(implicit request: RequestHeader): String

    Transform this call to an absolute URL.

    Transform this call to an absolute URL.

    import play.api.mvc.{ Call, RequestHeader }
    
    implicit val req: RequestHeader = myRequest
    val url: String = Call("GET", "/url").absoluteURL()
    // == "http://$host/url", or "https://$host/url" if secure
  3. def absoluteURL(arg0: Boolean, arg1: String): String
    Definition Classes
    Call
  4. def absoluteURL(arg0: mvc.Http.Request, arg1: Boolean): String
    Definition Classes
    Call
  5. def absoluteURL(arg0: mvc.Http.Request): String
    Definition Classes
    Call
  6. def canonical(): String
    Definition Classes
    Call
  7. val fragment: String
    Definition Classes
    Call → Call
  8. val method: String
    Definition Classes
    Call → Call
  9. def path(): String
    Definition Classes
    Call
  10. def productElementNames: Iterator[String]
    Definition Classes
    Product
  11. def relative(implicit request: RequestHeader): String

    Transform this call to a URL relative to the current request's path.

    Transform this call to a URL relative to the current request's path.

    import play.api.mvc.{ Call, RequestHeader }
    
    implicit val req: RequestHeader = myRequest
    // If current req.path == "/playframework"
    val url: String = Call("GET", "/url").relative
    // == "../url"
  12. def relativeTo(arg0: String): String
    Definition Classes
    Call
  13. def relativeTo(arg0: mvc.Http.RequestHeader): String
    Definition Classes
    Call
  14. def toString(): String
    Definition Classes
    Call → AnyRef → Any
  15. def unique(): Call
    Definition Classes
    Call → Call
  16. val url: String
    Definition Classes
    Call → Call
  17. def webSocketURL(secure: Boolean)(implicit request: RequestHeader): String

    Transform this call to an WebSocket URL.

  18. def webSocketURL()(implicit request: RequestHeader): String

    Transform this call to an WebSocket URL.

    Transform this call to an WebSocket URL.

    import play.api.mvc.{ Call, RequestHeader }
    
    implicit val req: RequestHeader = myRequest
    val url: String = Call("GET", "/url").webSocketURL()
    // == "ws://$host/url", or "wss://$host/url" if secure
  19. def webSocketURL(arg0: Boolean, arg1: String): String
    Definition Classes
    Call
  20. def webSocketURL(arg0: mvc.Http.Request, arg1: Boolean): String
    Definition Classes
    Call
  21. def webSocketURL(arg0: mvc.Http.Request): String
    Definition Classes
    Call
  22. def withFragment(fragment: String): Call
    Definition Classes
    Call → Call