play.mvc
Class Call

java.lang.Object
  extended by play.mvc.Call

public abstract class Call
extends java.lang.Object

Defines a 'call', describing an HTTP request. For example used to create links or populate redirect data.

These values are usually generated by the reverse router.


Constructor Summary
Call()
           
 
Method Summary
 java.lang.String absoluteURL(Http.Request request)
          Transform this call to an absolute URL.
 java.lang.String absoluteURL(Http.Request request, boolean secure)
          Transform this call to an absolute URL.
abstract  java.lang.String method()
          The request HTTP method.
 Call unique()
          Append a unique identifier to the URL.
abstract  java.lang.String url()
          The request URL.
 java.lang.String webSocketURL(Http.Request request)
          Transform this call to an WebSocket URL.
 java.lang.String webSocketURL(Http.Request request, boolean secure)
          Transform this call to an WebSocket URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Call

public Call()
Method Detail

url

public abstract java.lang.String url()
The request URL.


method

public abstract java.lang.String method()
The request HTTP method.


unique

public Call unique()
Append a unique identifier to the URL.


absoluteURL

public java.lang.String absoluteURL(Http.Request request)
Transform this call to an absolute URL.


absoluteURL

public java.lang.String absoluteURL(Http.Request request,
                                    boolean secure)
Transform this call to an absolute URL.


webSocketURL

public java.lang.String webSocketURL(Http.Request request)
Transform this call to an WebSocket URL.


webSocketURL

public java.lang.String webSocketURL(Http.Request request,
                                     boolean secure)
Transform this call to an WebSocket URL.