Class

play.api.mvc

Call

Related Doc: package mvc

Permalink

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, 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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    method

    the request HTTP method

    url

    the request URL

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def absoluteURL(secure: Boolean)(implicit request: RequestHeader): String

    Permalink

    Transform this call to an absolute URL.

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

    Permalink

    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
  6. def absoluteURL(arg0: Boolean, arg1: String): String

    Permalink
    Definition Classes
    Call
  7. def absoluteURL(arg0: mvc.Http.Request, arg1: Boolean): String

    Permalink
    Definition Classes
    Call
  8. def absoluteURL(arg0: mvc.Http.Request): String

    Permalink
    Definition Classes
    Call
  9. def appendFragment(): String

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

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    Call → Call
  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  17. val method: String

    Permalink

    the request HTTP method

    the request HTTP method

    Definition Classes
    Call → Call
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def path(): String

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

    Permalink
    Definition Classes
    Call → Call
  25. final def uniquify(arg0: String): String

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

    Permalink

    the request URL

    the request URL

    Definition Classes
    Call → Call
  27. final def wait(): Unit

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

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

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

    Permalink

    Transform this call to an WebSocket URL.

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

    Permalink

    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
  32. def webSocketURL(arg0: Boolean, arg1: String): String

    Permalink
    Definition Classes
    Call
  33. def webSocketURL(arg0: mvc.Http.Request, arg1: Boolean): String

    Permalink
    Definition Classes
    Call
  34. def webSocketURL(arg0: mvc.Http.Request): String

    Permalink
    Definition Classes
    Call
  35. def withFragment(fragment: String): Call

    Permalink
    Definition Classes
    Call → Call

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from mvc.Call

Inherited from AnyRef

Inherited from Any

Ungrouped