play.mvc

ScalaController

class ScalaController extends ControllerDelegate with LocalVariablesSupport with ControllerSupport

Represents a Scala based Controller

attributes: abstract

Inherits

  1. ControllerSupport
  2. LocalVariablesSupport
  3. ControllerDelegate
  4. AnyRef
  5. Any

Value Members

  1. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
  2. def error(arg0: Int, arg1: String): Unit

  3. def error(): Unit

  4. def error(arg0: Exception): Unit

  5. def error(arg0: String): Unit

  6. def flash: Flash

  7. def forbidden(): Unit

  8. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
  9. def notFound(): Unit

  10. def notFound(arg0: String): Unit

  11. def notFoundIfNull(arg0: Any): Unit

  12. def notModified(): Unit

  13. def ok(): Unit

  14. def params: Params

  15. def redirect(arg0: String, arg1: Boolean, arg2: <repeated...>[AnyRef]): Unit

  16. def redirect(arg0: String, arg1: <repeated...>[AnyRef]): Unit

  17. def redirect(arg0: String, arg1: Boolean): Unit

  18. def redirect(arg0: String): Unit

  19. def redirectToStatic(arg0: String): Unit

  20. def render(args: Any*): Unit

    renders content using the underlying templating language

    renders content using the underlying templating language

    args
  21. def renderArgs: RenderArgs

  22. def renderBinary(arg0: InputStream, arg1: String): Unit

  23. def renderBinary(arg0: File): Unit

  24. def renderBinary(arg0: InputStream): Unit

  25. def renderHtml(content: String): Unit

    renders content in html

    renders content in html

    content

    Html to be rendered

  26. def renderHtml(node: NodeSeq): Unit

    renders an xml node as XHTML

    renders an xml node as XHTML

  27. def renderJSON(arg0: Any): Unit

  28. def renderJSON(arg0: String): Unit

  29. def renderTemplate(arg0: String, arg1: <repeated...>[AnyRef]): Unit

  30. def renderText(arg0: CharSequence, arg1: <repeated...>[AnyRef]): Unit

  31. def renderText(arg0: Any): Unit

  32. def renderXml(node: NodeSeq): Unit

    renders an xml node as xml

    renders an xml node as xml

    node

    xml node to be rendered

  33. def renderXml(arg0: String): Unit

  34. def request: Request

  35. def response: Response

  36. def session: Session

  37. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: AnyRef ⇐ Any
  38. def todo(): Unit

  39. def unauthorized(): Unit

  40. def unauthorized(arg0: String): Unit

  41. def validation: Validation

  42. def waitFor(arg0: Future): Unit

Instance constructors

  1. new ScalaController()