play.api.mvc

Call

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

Linear Supertypes
Serializable, Serializable, Product, Equals, mvc.Call, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Call
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Call
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    method

    the request HTTP method

    url

    the request URL

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def absoluteURL(secure: Boolean)(implicit request: RequestHeader): String

    Transform this call to an absolute URL.

  7. 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
  8. def absoluteURL(secure: Boolean, host: String): String

    Definition Classes
    Call
  9. def absoluteURL(request: mvc.Http.Request, secure: Boolean): String

    Definition Classes
    Call
  10. def absoluteURL(request: mvc.Http.Request): String

    Definition Classes
    Call
  11. def appendFragment(): String

    Attributes
    protected[play.mvc]
    Definition Classes
    Call
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val fragment: String

    Definition Classes
    CallCall
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. val method: String

    the request HTTP method

    the request HTTP method

    Definition Classes
    CallCall
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def path(): String

    Definition Classes
    Call
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    Call → AnyRef → Any
  26. def unique(): Call

    Definition Classes
    CallCall
  27. final def uniquify(url: String): String

    Attributes
    protected[play.mvc]
    Definition Classes
    Call
  28. val url: String

    the request URL

    the request URL

    Definition Classes
    CallCall
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def webSocketURL(secure: Boolean)(implicit request: RequestHeader): String

    Transform this call to an WebSocket URL.

  33. 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
  34. def webSocketURL(secure: Boolean, host: String): String

    Definition Classes
    Call
  35. def webSocketURL(request: mvc.Http.Request, secure: Boolean): String

    Definition Classes
    Call
  36. def webSocketURL(request: mvc.Http.Request): String

    Definition Classes
    Call
  37. def withFragment(fragment: String): Call

    Definition Classes
    CallCall

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from mvc.Call

Inherited from AnyRef

Inherited from Any

Ungrouped