xitrum.controller

Action

case class Action(route: Route, method: Method, body: () ⇒ Unit, cacheSeconds: Int) extends Product with Serializable

method

for creating new controller instance, or getting controller class name and action method name, is a var because it will be updated for caching

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

Instance Constructors

  1. new Action(route: Route, method: Method, body: () ⇒ Unit, cacheSeconds: Int)

    method

    for creating new controller instance, or getting controller class name and action method name, is a var because it will be updated for caching

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 DELETE(body: ⇒ Any): Action

  7. def DELETE(pattern: String)(body: ⇒ Any): Action

  8. def GET(body: ⇒ Any): Action

  9. def GET(pattern: String)(body: ⇒ Any): Action

  10. def OPTIONS(body: ⇒ Any): Action

  11. def OPTIONS(pattern: String)(body: ⇒ Any): Action

  12. def PATCH(body: ⇒ Any): Action

  13. def PATCH(pattern: String)(body: ⇒ Any): Action

  14. def POST(body: ⇒ Any): Action

  15. def POST(pattern: String)(body: ⇒ Any): Action

  16. def PUT(body: ⇒ Any): Action

  17. def PUT(pattern: String)(body: ⇒ Any): Action

  18. def WEBSOCKET(body: ⇒ Any): Action

  19. def WEBSOCKET(pattern: String)(body: ⇒ Any): Action

  20. def absoluteUrl(implicit controller: Controller): String

  21. def absoluteUrl(params: (String, Any)*)(implicit controller: Controller): String

  22. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  23. val body: () ⇒ Unit

  24. def cacheActionDay(days: Int): Action

  25. def cacheActionHour(hours: Int): Action

  26. def cacheActionMinute(minutes: Int): Action

  27. def cacheActionSecond(seconds: Int): Action

  28. def cachePageDay(days: Int): Action

  29. def cachePageHour(hours: Int): Action

  30. def cachePageMinute(minutes: Int): Action

  31. def cachePageSecond(seconds: Int): Action

  32. val cacheSeconds: Int

  33. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  35. def equals(action: Any): Boolean

    You can write: if (currentAction == MyController.

    You can write: if (currentAction == MyController.index) ...

    Definition Classes
    Action → Equals → AnyRef → Any
  36. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def first: Action

  38. final def getClass(): Class[_]

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

    Definition Classes
    Any
  40. def last: Action

  41. var method: Method

    for creating new controller instance, or getting controller class name and action method name, is a var because it will be updated for caching

  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def nonNullMethod: Method

  44. final def notify(): Unit

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

    Definition Classes
    AnyRef
  46. val route: Route

  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def url(params: (String, Any)*): String

  49. lazy val url: String

  50. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  53. def webSocketAbsoluteUrl(implicit controller: Controller): String

  54. def webSocketAbsoluteUrl(params: (String, Any)*)(implicit controller: Controller): String

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped