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
- Alphabetic
- By Inheritance
- Call
- Serializable
- Serializable
- Product
- Equals
- Call
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Call(method: String, url: String, fragment: String = null)
- method
the request HTTP method
- url
the request URL
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
absoluteURL(secure: Boolean)(implicit request: RequestHeader): String
Transform this call to an absolute URL.
-
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
-
def
absoluteURL(secure: Boolean, host: String): String
- Definition Classes
- Call
-
def
absoluteURL(request: mvc.Http.Request, secure: Boolean): String
- Definition Classes
- Call
-
def
absoluteURL(request: mvc.Http.Request): String
- Definition Classes
- Call
- def appendFragment(): String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canonical(): String
- Definition Classes
- Call
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fragment: String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val method: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
path(): String
- Definition Classes
- Call
-
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"
-
def
relativeTo(startPath: String): String
- Definition Classes
- Call
-
def
relativeTo(requestHeader: mvc.Http.RequestHeader): String
- Definition Classes
- Call
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Call → AnyRef → Any
- def unique(): Call
- final def uniquify(url: String): String
- val url: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
webSocketURL(secure: Boolean)(implicit request: RequestHeader): String
Transform this call to an WebSocket URL.
-
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
-
def
webSocketURL(secure: Boolean, host: String): String
- Definition Classes
- Call
-
def
webSocketURL(request: mvc.Http.Request, secure: Boolean): String
- Definition Classes
- Call
-
def
webSocketURL(request: mvc.Http.Request): String
- Definition Classes
- Call
- def withFragment(fragment: String): Call