Class

xitrum.metrics

XitrumMetricsChannel

Related Doc: package metrics

Permalink

class XitrumMetricsChannel extends SockJsAction with PublisherLookUp

SockJS channel for metrics JSON.

Annotations
@SOCKJS( paths = "xitrum/metrics/channel" )
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XitrumMetricsChannel
  2. PublisherLookUp
  3. SockJsAction
  4. Action
  5. I18n
  6. JsResponder
  7. JsRenderer
  8. FlashResponder
  9. FlashRenderer
  10. ViewResponder
  11. Responder
  12. ViewRenderer
  13. GetActionClassDefaultsToCurrentAction
  14. Renderer
  15. Url
  16. Redirect
  17. BasicAuth
  18. Filter
  19. Net
  20. Log
  21. SessionEnv
  22. Csrf
  23. RequestEnv
  24. ParamAccess
  25. Actor
  26. AnyRef
  27. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new XitrumMetricsChannel()

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

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 absSockJsUrl[T <: SockJsAction](implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  5. def absUrl[T <: Action](implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  6. def absUrl[T <: Action](params: (String, Any)*)(implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  7. def absUrl(params: (String, Any)*): String

    Permalink
    Definition Classes
    Url
  8. lazy val absUrl: String

    Permalink
    Definition Classes
    Url
  9. lazy val absUrlPrefix: String

    Permalink
    Definition Classes
    Url
  10. lazy val absUrlPrefixWithoutScheme: String

    Permalink
    Definition Classes
    Url
  11. lazy val absWebSocketRequestUrl: String

    Permalink
    Definition Classes
    Url
  12. def absWebSocketUrl[T <: WebSocketAction](implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  13. def absWebSocketUrl[T <: WebSocketAction](params: (String, Any)*)(implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  14. def absWebSocketUrl(params: (String, Any)*): String

    Permalink
    Definition Classes
    Url
  15. lazy val absWebSocketUrl: String

    Permalink
    Definition Classes
    Url
  16. lazy val absWebSocketUrlPrefix: String

    Permalink
    Definition Classes
    Url
  17. def addConnectionClosedListener(listener: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Action
  18. def afterFilter(f: ⇒ Any): Unit

    Permalink
    Definition Classes
    Filter
  19. lazy val antiCsrfInput: Elem

    Permalink
    Definition Classes
    Csrf
  20. lazy val antiCsrfMeta: Elem

    Permalink
    Definition Classes
    Csrf
  21. def antiCsrfToken: String

    Permalink
    Definition Classes
    Csrf
  22. def apply(handlerEnv: HandlerEnv): Unit

    Permalink
    Definition Classes
    RequestEnv
  23. def aroundFilter(f: (() ⇒ Any) ⇒ Any): Unit

    Permalink
    Definition Classes
    Filter
  24. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  25. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  26. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  27. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  28. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  29. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  30. lazy val at: At

    Permalink
    Definition Classes
    RequestEnv
  31. def atJson(key: String): String

    Permalink
    Definition Classes
    RequestEnv
  32. def autosetLanguage(availableLanguages: String*): Unit

    Permalink

    Sets current language automatically based on the matching of the "Accept-Language" header against the list of given languages.

    Sets current language automatically based on the matching of the "Accept-Language" header against the list of given languages. The languages should have corresponding files i18n/language.po in classpath (the language should be in IETF BCP 47 format).

    If there's no match, the language is still the default "en".

    Definition Classes
    I18n
  33. def badRequestMessageInvalidInput(message: String): String

    Permalink

    Applications may override this method to modify the default message: Validation error: + message

    Applications may override this method to modify the default message: Validation error: + message

    Attributes
    protected
    Definition Classes
    Action
  34. def badRequestMessageMissingParam(param: String): String

    Permalink

    Applications may override this method to modify the default message: Missing param: + param

    Applications may override this method to modify the default message: Missing param: + param

    Attributes
    protected
    Definition Classes
    Action
  35. def badRequestMessageSessionExpired: String

    Permalink

    Applications may override this method to modify the default message: Session expired. Please refresh your browser.

    Applications may override this method to modify the default message: Session expired. Please refresh your browser.

    Attributes
    protected
    Definition Classes
    Action
  36. def basicAuth(realm: String)(authenticator: (String, String) ⇒ Boolean): Boolean

    Permalink

    authenticator

    takes username and password, returns true if it want to let the user in.

    Definition Classes
    BasicAuth
  37. def beforeFilter(f: ⇒ Any): Unit

    Permalink

    Adds a before filter.

    Adds a before filter.

    Definition Classes
    Filter
  38. lazy val bodyFileParams: FileUploadParams

    Permalink

    File params in request body.

    File params in request body.

    Definition Classes
    RequestEnv
  39. lazy val bodyTextParams: Params

    Permalink

    Params in request body.

    Params in request body.

    Definition Classes
    RequestEnv
  40. lazy val browserLanguages: List[LanguageRange]

    Permalink

    returns

    List of Locale.LanguageRange sorted by priority from high to low

    Definition Classes
    I18n
  41. def callAfterFilters(): Unit

    Permalink

    Called by Dispatcher.

    Called by Dispatcher. Calls all after filters.

    Definition Classes
    Filter
  42. def callBeforeFilters(): Boolean

    Permalink

    Called by Dispatcher.

    Called by Dispatcher. Calls all before filters until a filter has responded something.

    returns

    false if a before filter has responded something and later before filters and the action's "execute" method should not be called

    Definition Classes
    Filter
  43. def callExecuteWrappedInAroundFilters(): Unit

    Permalink

    Called by Dispatcher

    Called by Dispatcher

    Definition Classes
    Filter
  44. lazy val channel: Channel

    Permalink
    Definition Classes
    RequestEnv
  45. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  47. def convertTextParam[T](value: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink

    Applications may override this method to convert to more types.

    Applications may override this method to convert to more types.

    Definition Classes
    ParamAccess
  48. implicit val currentAction: Action

    Permalink

    Convenient implicit, for example for use when you want to get the current action in view templates.

    Convenient implicit, for example for use when you want to get the current action in view templates.

    Definition Classes
    Action
  49. def dispatchWithFailsafe(skipCsrfCheck: Boolean): Unit

    Permalink
    Definition Classes
    Action
  50. def doWithPublisher(publisher: ActorRef): Unit

    Permalink
    Definition Classes
    XitrumMetricsChannelPublisherLookUp
  51. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  53. def execute(): Unit

    Permalink

    The current action is the one just before switching to this SockJS actor.

    The current action is the one just before switching to this SockJS actor. You can extract session data, request headers etc. from it, but do not use respondText, respondView etc. Use respondSockJsText and respondSockJsClose.

    Definition Classes
    XitrumMetricsChannelSockJsActionAction
  54. implicit lazy val executionContext: ExecutionContextExecutor

    Permalink

    Convenient implicit, for example for use when you use scala.concurrent.Future.

    Convenient implicit, for example for use when you use scala.concurrent.Future. It's lazy to avoid starting Akka in tests.

    Definition Classes
    Action
  55. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  56. def flash(): String

    Permalink

    Returns the current content in flash, and clears the flash.

    Returns the current content in flash, and clears the flash.

    Definition Classes
    FlashRenderer
  57. def flash(msg: Any): Unit

    Permalink

    Definition Classes
    FlashRenderer
    See also

    jsFlash(msg).

  58. def forwardTo(actionClass: Class[_ <: Action]): Unit

    Permalink
    Definition Classes
    Redirect
  59. def forwardTo[T <: Action]()(implicit arg0: Manifest[T]): Unit

    Permalink

    Example: forwardTo[AnotherActionClass]()

    Example: forwardTo[AnotherActionClass]()

    Tells another action to process the current request for the current action. See also redirectTo.

    Definition Classes
    Redirect
  60. var forwarding: Boolean

    Permalink

    Set to true by forwardTo.

    Set to true by forwardTo.

    Definition Classes
    Redirect
  61. def getActionClass[T <: Action](implicit arg0: Manifest[T]): Class[Action]

    Permalink
  62. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  63. var handlerEnv: HandlerEnv

    Permalink
    Definition Classes
    RequestEnv
  64. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  65. lazy val isAjax: Boolean

    Permalink
    Definition Classes
    JsResponder
  66. def isDoneResponding: Boolean

    Permalink
    Definition Classes
    Responder
  67. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  68. lazy val isSsl: Boolean

    Permalink
    Definition Classes
    Net
  69. def js$(selector: String): String

    Permalink
    Definition Classes
    JsRenderer
  70. def js$id(id: String): String

    Permalink
    Definition Classes
    JsRenderer
  71. def js$name(name: String): String

    Permalink
    Definition Classes
    JsRenderer
  72. def jsAddToView(js: Any): Unit

    Permalink

    You can use this method to add dynamic JS snippets to a buffer, then use method jsForView to take out that buffer to embed the snippets to view template.

    You can use this method to add dynamic JS snippets to a buffer, then use method jsForView to take out that buffer to embed the snippets to view template.

    Definition Classes
    JsRenderer
  73. lazy val jsDefaults: Group

    Permalink
    Definition Classes
    JsRenderer
  74. def jsEscape(string: Any): String

    Permalink

    Do not use this to escape JSON, because they are different! For example JSON does not escape ' character, while JavaScript does.

    Do not use this to escape JSON, because they are different! For example JSON does not escape ' character, while JavaScript does. To escape JSON, use xitrum.util.SeriDeseri.toJson(Seq(string)).

    org.apache.commons.lang3.StringEscapeUtils is used internally.

    Definition Classes
    JsRenderer
  75. def jsFlashCall(msg: Any): String

    Permalink
    Attributes
    protected
    Definition Classes
    FlashRenderer
  76. lazy val jsForView: Serializable

    Permalink

    See jsAddToView.

    See jsAddToView.

    Definition Classes
    JsRenderer
  77. def jsRedirectTo[T <: Action](params: (String, Any)*)(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    JsResponder
  78. def jsRedirectTo(location: Any): ChannelFuture

    Permalink

    See http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery

    See http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery

    Definition Classes
    JsResponder
  79. def jsRenderFlash(): Unit

    Permalink

    Like jsRenderFlash(msg), but uses the current flash.

    Like jsRenderFlash(msg), but uses the current flash.

    Definition Classes
    FlashRenderer
  80. def jsRenderFlash(msg: Any): Unit

    Permalink

    For web 2.0 style application.

    For web 2.0 style application. Used in application layout to display the flash message right after a view is loaded.

    Definition Classes
    FlashRenderer
  81. def jsRespond(fragments: Any*): ChannelFuture

    Permalink
    Definition Classes
    JsResponder
  82. def jsRespondFlash(msg: Any): Unit

    Permalink

    For web 2.0 style application.

    For web 2.0 style application. Used in Ajax request handling to respond a message and have the browser render it to the flash area right away.

    Definition Classes
    FlashResponder
  83. def language: String

    Permalink

    Default language is "en".

    Default language is "en".

    Definition Classes
    I18n
  84. def language_=(language: String): Unit

    Permalink

    Sets current language manually.

    Sets current language manually. The language should have a corresponding file i18n/language.po in classpath (the language should be in IETF BCP 47 format).

    Definition Classes
    I18n
  85. def layout: Any

    Permalink
    Definition Classes
    ViewRenderer
  86. def locale: Locale

    Permalink

    The locale corresponding to the language.

    The locale corresponding to the language. It will be updated automatically when you update language.

    Definition Classes
    I18n
  87. lazy val log: Logger

    Permalink

    Log name is inferred from name of the class extending this trait.

    Log name is inferred from name of the class extending this trait.

    Definition Classes
    Log
  88. def lookUpPublisher(): Unit

    Permalink
    Definition Classes
    PublisherLookUp
  89. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  90. def newComponent[T <: Component]()(implicit arg0: Manifest[T]): T

    Permalink
    Definition Classes
    Action
  91. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  93. def onDoneResponding(): Unit

    Permalink

    Called when the response or the last chunk (in case of chunked response) has been sent to the client.

    Called when the response or the last chunk (in case of chunked response) has been sent to the client.

    Definition Classes
    Responder
  94. def param[T](key: String, coll: Params)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], d: DefaultsTo[T, String]): T

    Permalink
    Definition Classes
    ParamAccess
  95. def param[T](key: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], d: DefaultsTo[T, String]): T

    Permalink
    Definition Classes
    ParamAccess
  96. def paramo[T](key: String, coll: Params)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], d: DefaultsTo[T, String]): Option[T]

    Permalink
    Definition Classes
    ParamAccess
  97. def paramo[T](key: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], d: DefaultsTo[T, String]): Option[T]

    Permalink
    Definition Classes
    ParamAccess
  98. def params[T](key: String, coll: Params)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], d: DefaultsTo[T, String]): Seq[T]

    Permalink
    Definition Classes
    ParamAccess
  99. def params[T](key: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T], d: DefaultsTo[T, String]): Seq[T]

    Permalink
    Definition Classes
    ParamAccess
  100. lazy val pathParams: Params

    Permalink

    Params embedded in the path.

    Params embedded in the path. Ex: /articles/:id

    Definition Classes
    RequestEnv
  101. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  102. def postStop(): Unit

    Permalink
    Definition Classes
    SockJsAction → Actor
  103. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  104. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  105. def publicUrl(directory: String, devFile: String, prodFile: String): String

    Permalink

    Ex: publicUrl("jquery/3.3.1/dist", "jquery.js", "jquery.min.js")

    Ex: publicUrl("jquery/3.3.1/dist", "jquery.js", "jquery.min.js")

    directory

    Relative to the "public" directory, without leading "/"

    devFile

    File in the directory to use in development mode

    prodFile

    File in the directory to use in production mode

    Definition Classes
    Url
  106. def publicUrl(devPath: String, prodPath: String): String

    Permalink

    Ex: publicUrl("jquery/3.3.1/dist/jquery.js", "jquery/3.3.1/dist/jquery.min.js")

    Ex: publicUrl("jquery/3.3.1/dist/jquery.js", "jquery/3.3.1/dist/jquery.min.js")

    devPath

    File path to use in development mode, relative to the "public" directory, without leading "/"

    prodPath

    File path to use in production mode, relative to the "public" directory, without leading "/"

    Definition Classes
    Url
  107. def publicUrl(path: String): String

    Permalink

    Ex: publicUrl("jquery/3.3.1/dist/jquery.js")

    Ex: publicUrl("jquery/3.3.1/dist/jquery.js")

    path

    Relative to the "public" directory, without leading "/"

    Definition Classes
    Url
  108. lazy val queryParams: Params

    Permalink

    Params after the question mark of the URL.

    Params after the question mark of the URL. Ex: /search?q=xitrum

    Definition Classes
    RequestEnv
  109. def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    SockJsAction → Actor
  110. def redirectTo[T <: Action](params: (String, Any)*)(implicit arg0: Manifest[T]): ChannelFuture

    Permalink

    Example: redirectTo[AnotherActionClass]()

    Example: redirectTo[AnotherActionClass]()

    Example: redirectTo[AnotherActionClass]("param1" -> value1, "param2" -> value2)

    See also forwardTo.

    Definition Classes
    Redirect
  111. def redirectTo(location: String, status: HttpResponseStatus = HttpResponseStatus.FOUND): ChannelFuture

    Permalink

    Example: redirectTo("https://google.com/"); status will be 302 FOUND

    Example: redirectTo("https://google.com/"); status will be 302 FOUND

    Example: redirectTo("https://google.com/", HttpResponseStatus.MOVED_PERMANENTLY)

    See also forwardTo.

    Definition Classes
    Redirect
  112. def redirectToThis(params: (String, Any)*): ChannelFuture

    Permalink

    Example: redirectToThis()

    Example: redirectToThis()

    Example: redirectToThis("param1" -> value1, "param2" -> value2)

    Redirects back to the current action. See also forwardTo.

    Definition Classes
    Redirect
  113. lazy val remoteIp: String

    Permalink

    returns

    IPv4 or IPv6 of the original remote HTTP client (not the proxy), X-Forwarded-For is supported

    Definition Classes
    Net
  114. def renderEventSource(data: Any, event: String = "message"): String

    Permalink
    Definition Classes
    Renderer
  115. def renderFragment[T <: Action](fragment: String)(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template fragment at the directory associated with the action.

    Renders the template fragment at the directory associated with the action.

    Definition Classes
    ViewRenderer
  116. def renderFragment[T <: Action](fragment: String, options: Map[String, Any])(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template fragment at the directory associated with the action.

    Renders the template fragment at the directory associated with the action.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  117. def renderFragment(actionClass: Class[_ <: Action], fragment: String): String

    Permalink

    Renders the template fragment at the directory associated with the action.

    Renders the template fragment at the directory associated with the action.

    Definition Classes
    ViewRenderer
  118. def renderFragment(actionClass: Class[_ <: Action], fragment: String, options: Map[String, Any]): String

    Permalink

    Renders the template fragment at the directory associated with the action.

    Renders the template fragment at the directory associated with the action.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  119. def renderFragment(directoryUri: String, fragment: String): String

    Permalink

    Renders the template fragment at the directory.

    Renders the template fragment at the directory.

    Definition Classes
    ViewRenderer
  120. def renderFragment(directoryUri: String, fragment: String, options: Map[String, Any]): String

    Permalink

    Renders the template fragment at the directory.

    Renders the template fragment at the directory.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  121. def renderInlineView(inlineView: Any): String

    Permalink

    Sets renderedView and call layout.

    Sets renderedView and call layout.

    Definition Classes
    ViewRenderer
  122. def renderTemplate(uri: String): String

    Permalink

    Renders the template at uri (renderedView is not affected).

    Renders the template at uri (renderedView is not affected).

    Definition Classes
    ViewRenderer
  123. def renderTemplate(uri: String, options: Map[String, Any]): String

    Permalink

    Renders the template at uri (renderedView is not affected).

    Renders the template at uri (renderedView is not affected).

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  124. def renderView[T <: Action]()(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls layout.

    Renders the template associated with the action to renderedView, then calls layout.

    Definition Classes
    ViewRenderer
  125. def renderView[T <: Action](options: Map[String, Any])(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls layout.

    Renders the template associated with the action to renderedView, then calls layout.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  126. def renderView(actionClass: Class[_ <: Action]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls layout.

    Renders the template associated with the action to renderedView, then calls layout.

    Definition Classes
    ViewRenderer
  127. def renderView(actionClass: Class[_ <: Action], options: Map[String, Any]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls layout.

    Renders the template associated with the action to renderedView, then calls layout.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  128. def renderView[T <: Action](customLayout: () ⇒ Any)(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls the custom layout.

    Renders the template associated with the action to renderedView, then calls the custom layout.

    Definition Classes
    ViewRenderer
  129. def renderView[T <: Action](customLayout: () ⇒ Any, options: Map[String, Any])(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls the custom layout.

    Renders the template associated with the action to renderedView, then calls the custom layout.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  130. def renderView(customLayout: () ⇒ Any, actionClass: Class[_ <: Action]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls the custom layout.

    Renders the template associated with the action to renderedView, then calls the custom layout.

    Definition Classes
    ViewRenderer
  131. def renderView(customLayout: () ⇒ Any, actionClass: Class[_ <: Action], options: Map[String, Any]): String

    Permalink

    Renders the template associated with the action to renderedView, then calls the custom layout.

    Renders the template associated with the action to renderedView, then calls the custom layout.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  132. def renderView(uri: String): String

    Permalink

    Renders the template at uri to renderedView, then calls layout.

    Renders the template at uri to renderedView, then calls layout.

    Definition Classes
    ViewRenderer
  133. def renderView(uri: String, options: Map[String, Any]): String

    Permalink

    Renders the template at uri to renderedView, then calls layout.

    Renders the template at uri to renderedView, then calls layout.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  134. def renderView(customLayout: () ⇒ Any, uri: String): String

    Permalink

    Renders the template at uri to renderedView, then calls the custom layout.

    Renders the template at uri to renderedView, then calls the custom layout.

    Definition Classes
    ViewRenderer
  135. def renderView(customLayout: () ⇒ Any, uri: String, options: Map[String, Any]): String

    Permalink

    Renders the template at uri to renderedView, then calls the custom layout.

    Renders the template at uri to renderedView, then calls the custom layout.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  136. def renderViewNoLayout[T <: Action]()(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template associated with the action to renderedView.

    Renders the template associated with the action to renderedView.

    Definition Classes
    ViewRenderer
  137. def renderViewNoLayout[T <: Action](options: Map[String, Any])(implicit arg0: Manifest[T]): String

    Permalink

    Renders the template associated with the action to renderedView.

    Renders the template associated with the action to renderedView.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  138. def renderViewNoLayout(actionClass: Class[_ <: Action]): String

    Permalink

    Renders the template associated with the action to renderedView.

    Renders the template associated with the action to renderedView.

    Definition Classes
    ViewRenderer
  139. def renderViewNoLayout(actionClass: Class[_ <: Action], options: Map[String, Any]): String

    Permalink

    Renders the template associated with the action to renderedView.

    Renders the template associated with the action to renderedView.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  140. def renderViewNoLayout(uri: String): String

    Permalink

    Renders the template at uri to renderedView.

    Renders the template at uri to renderedView.

    Definition Classes
    ViewRenderer
  141. def renderViewNoLayout(uri: String, options: Map[String, Any]): String

    Permalink

    Renders the template at uri to renderedView.

    Renders the template at uri to renderedView.

    options

    specific to the configured template engine

    Definition Classes
    ViewRenderer
  142. var renderedView: Any

    Permalink
    Definition Classes
    ViewRenderer
  143. lazy val request: FullHttpRequest

    Permalink
    Definition Classes
    RequestEnv
  144. lazy val requestContentJValue: JValue

    Permalink

    The whole request body parsed as JSON4S JValue.

    The whole request body parsed as JSON4S JValue. You can use SeriDeseri.fromJValue to convert this to Scala object (case class, Map, Seq etc.).

    Definition Classes
    RequestEnv
  145. lazy val requestContentString: String

    Permalink

    The whole request body as String.

    The whole request body as String.

    Definition Classes
    RequestEnv
  146. lazy val requestCookies: Map[String, String]

    Permalink

    Browsers will not send cookie attributes back to the server.

    Browsers will not send cookie attributes back to the server. They will only send the cookie (name-value pairs). http://en.wikipedia.org/wiki/HTTP_cookie#Cookie_attributes

    Definition Classes
    SessionEnv
  147. def respond(): ChannelFuture

    Permalink
    Definition Classes
    Responder
  148. def respond404Page(): Unit

    Permalink
    Definition Classes
    Responder
  149. def respond500Page(): Unit

    Permalink
    Definition Classes
    Responder
  150. def respondBinary(byteBuf: ByteBuf): ChannelFuture

    Permalink

    If Content-Type header is not set, it is set to "application/octet-stream".

    If Content-Type header is not set, it is set to "application/octet-stream".

    byteBuf

    Will be released

    Definition Classes
    Responder
  151. def respondBinary(bytes: Array[Byte]): ChannelFuture

    Permalink

    If Content-Type header is not set, it is set to "application/octet-stream".

    If Content-Type header is not set, it is set to "application/octet-stream".

    Definition Classes
    Responder
  152. def respondDefault404Page(): ChannelFuture

    Permalink
    Definition Classes
    Responder
  153. def respondDefault500Page(): ChannelFuture

    Permalink
    Definition Classes
    Responder
  154. def respondEventSource(data: Any, event: String = "message"): ChannelFuture

    Permalink

    To respond event source, call this method as many time as you want.

    To respond event source, call this method as many time as you want. Event Source response is a special kind of chunked response, data must be UTF-8. See: - http://sockjs.github.com/sockjs-protocol/sockjs-protocol-0.3.3.html#section-94 - http://dev.w3.org/html5/eventsource/

    No need to call setChunked() before calling this method.

    Definition Classes
    Responder
  155. def respondFile(path: String): ChannelFuture

    Permalink

    Sends a file using X-SendFile.

    Sends a file using X-SendFile. If Content-Type header is not set, it is guessed from the file name.

    path

    absolute or relative to the current working directory In some cases, the current working directory is not always the root directory of the project (https://github.com/xitrum-framework/xitrum/issues/47), you may need to use xitrum.Config.root to calculate the correct absolute path from a relative path. To sanitize the path, use xitrum.util.PathSanitizer.

    Definition Classes
    Responder
  156. def respondHtml(any: Any): ChannelFuture

    Permalink

    Content-Type header is set to "text/html".

    Content-Type header is set to "text/html".

    Definition Classes
    Responder
  157. def respondInlineView(inlineView: Any): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  158. def respondJs(any: Any): ChannelFuture

    Permalink

    Content-Type header is set to "application/javascript".

    Content-Type header is set to "application/javascript".

    Definition Classes
    Responder
  159. def respondJson(ref: AnyRef): ChannelFuture

    Permalink

    Converts the given Scala object to JSON object, and responds it.

    Converts the given Scala object to JSON object, and responds it. If you just want to respond a text with "application/json" as content type, use respondJsonText(text).

    Content-Type header is set to "application/json". "text/json" would make the browser download instead of displaying the content. It makes debugging a pain.

    Definition Classes
    Responder
  160. def respondJsonP(ref: AnyRef, function: String): ChannelFuture

    Permalink

    Converts the given Scala object to JSON object, wraps it with the given JavaScript function name, and responds.

    Converts the given Scala object to JSON object, wraps it with the given JavaScript function name, and responds. If you already have a JSON text, thus no conversion is needed, use respondJsonPText.

    Content-Type header is set to "application/javascript".

    Definition Classes
    Responder
  161. def respondJsonPText(text: Any, function: String): ChannelFuture

    Permalink

    Wraps the text with the given JavaScript function name, and responds.

    Wraps the text with the given JavaScript function name, and responds.

    Content-Type header is set to "application/javascript".

    Definition Classes
    Responder
  162. def respondJsonText(any: Any): ChannelFuture

    Permalink

    Content-Type header is set to "application/json".

    Content-Type header is set to "application/json".

    Definition Classes
    Responder
  163. def respondLastChunk(trailingHeaders: HttpHeaders = EmptyHttpHeaders.INSTANCE): ChannelFuture

    Permalink

    See setChunked.

    See setChunked.

    Definition Classes
    Responder
  164. def respondResource(path: String): ChannelFuture

    Permalink

    Sends a file from public directory in one of the entry (may be a JAR file) in classpath.

    Sends a file from public directory in one of the entry (may be a JAR file) in classpath. If Content-Type header is not set, it is guessed from the file name.

    path

    Relative to an entry in classpath, without leading "/"

    Definition Classes
    Responder
  165. def respondSockJsClose(): Future[Unit]

    Permalink
    Definition Classes
    SockJsAction
  166. def respondSockJsJson(scalaObject: AnyRef): Future[Unit]

    Permalink
    Definition Classes
    SockJsAction
  167. def respondSockJsText(text: String): Future[Unit]

    Permalink
    Definition Classes
    SockJsAction
  168. def respondTemplate(uri: String): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  169. def respondTemplate(uri: String, options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  170. def respondText(text: Any, fallbackContentType: String = null, convertXmlToXhtml: Boolean = true): ChannelFuture

    Permalink

    fallbackContentType

    Only used if Content-Type header has not been set. If not given and Content-Type header is not set, it is set to "application/xml" if text param is Node or NodeSeq, otherwise it is set to "text/plain".

    convertXmlToXhtml


    .toString by default returns

    which is rendered as 2
    tags on some browsers! Set to false if you really want XML, not XHTML. See http://www.scala-lang.org/node/492 and http://www.ne.jp/asahi/hishidama/home/tech/scala/xml.html

    Definition Classes
    Responder
  171. def respondView[T <: Action]()(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  172. def respondView[T <: Action](options: Map[String, Any])(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  173. def respondView(actionClass: Class[_ <: Action]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  174. def respondView(actionClass: Class[_ <: Action], options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  175. def respondView[T <: Action](customLayout: () ⇒ Any)(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  176. def respondView[T <: Action](customLayout: () ⇒ Any, options: Map[String, Any])(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  177. def respondView(customLayout: () ⇒ Any, actionClass: Class[_ <: Action]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  178. def respondView(customLayout: () ⇒ Any, actionClass: Class[_ <: Action], options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  179. def respondView(uri: String): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  180. def respondView(uri: String, options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  181. def respondView(customLayout: () ⇒ Any, uri: String): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  182. def respondView(customLayout: () ⇒ Any, uri: String, options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  183. def respondViewNoLayout[T <: Action]()(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  184. def respondViewNoLayout[T <: Action](options: Map[String, Any])(implicit arg0: Manifest[T]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  185. def respondViewNoLayout(actionClass: Class[_ <: Action]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  186. def respondViewNoLayout(actionClass: Class[_ <: Action], options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  187. def respondViewNoLayout(uri: String): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  188. def respondViewNoLayout(uri: String, options: Map[String, Any]): ChannelFuture

    Permalink
    Definition Classes
    ViewResponder
  189. def respondXml(any: Any): ChannelFuture

    Permalink

    Content-Type header is set to "application/xml".

    Content-Type header is set to "application/xml".

    Definition Classes
    Responder
  190. lazy val response: FullHttpResponse

    Permalink
    Definition Classes
    RequestEnv
  191. lazy val responseCookies: ArrayBuffer[Cookie]

    Permalink
    Definition Classes
    SessionEnv
  192. lazy val scheme: String

    Permalink
    Definition Classes
    Net
  193. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  194. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  195. lazy val serverName: String

    Permalink
    Definition Classes
    Net
  196. lazy val serverPort: Int

    Permalink
    Definition Classes
    Net
  197. lazy val session: Session

    Permalink

    To reset session: session.clear()

    To reset session: session.clear()

    Definition Classes
    SessionEnv
  198. def sessiono[T](key: String)(implicit d: DefaultsTo[T, String]): Option[T]

    Permalink
    Definition Classes
    SessionEnv
  199. def setChunked(): Unit

    Permalink

    To respond chunks (http://en.wikipedia.org/wiki/Chunked_transfer_encoding): 1.

    To respond chunks (http://en.wikipedia.org/wiki/Chunked_transfer_encoding): 1. Call setChunked() to mark that the response will be chunked 2. Call respondXXX as normal, but as many times as you want 3. Lastly, call respondLastChunk()

    If Content-Type header is not set, it is set to "application/octet-stream".

    Definition Classes
    Responder
  200. def setClientCacheAggressively(): Unit

    Permalink

    Tells the browser to cache static files for a long time.

    Tells the browser to cache static files for a long time. This works well even when this is a cluster of web servers behind a load balancer because the URL created by urlForResource is in the form: resource?etag

    Don't worry that browsers do not pick up new files after you modified them, see the doc about static files.

    Google recommends 1 year: http://code.google.com/speed/page-speed/docs/caching.html

    Both Max-age and Expires header are set because IEs use Expires, not max-age: http://mrcoles.com/blog/cookies-max-age-vs-expires/

    Definition Classes
    Responder
  201. def setCookieAndSessionIfTouchedOnRespond(): Unit

    Permalink
    Definition Classes
    SessionEnv
  202. def setNoClientCache(): Unit

    Permalink

    Prevents client cache.

    Prevents client cache. Note that "pragma: no-cache" is linked to requests, not responses: http://palizine.plynt.com/issues/2008Jul/cache-control-attributes/

    Definition Classes
    Responder
  203. def sockJsUrl[T <: SockJsAction](implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  204. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  205. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  206. def t(singular: String, args: Any*): String

    Permalink

    formatLocal using the current locale.

    formatLocal using the current locale.

    Definition Classes
    I18n
  207. def t(singular: String): String

    Permalink
    Definition Classes
    I18n
  208. def tc(ctx: String, singular: String, args: Any*): String

    Permalink

    formatLocal using the current locale.

    formatLocal using the current locale.

    Definition Classes
    I18n
  209. def tc(ctx: String, singular: String): String

    Permalink
    Definition Classes
    I18n
  210. def tcn(ctx: String, singular: String, plural: String, n: Long, args: Any*): String

    Permalink

    formatLocal using the current locale.

    formatLocal using the current locale.

    Definition Classes
    I18n
  211. def tcn(ctx: String, singular: String, plural: String, n: Long): String

    Permalink
    Definition Classes
    I18n
  212. lazy val textParams: Params

    Permalink

    The merge of all text params (queryParams, bodyParams, and pathParams), as contrast to file upload (bodyFileParams).

    The merge of all text params (queryParams, bodyParams, and pathParams), as contrast to file upload (bodyFileParams).

    Definition Classes
    RequestEnv
  213. implicit val timeout: FiniteDuration

    Permalink

    Convenient implicit, for example for use when you use scala.concurrent.Await.

    Convenient implicit, for example for use when you use scala.concurrent.Await.

    Definition Classes
    Action
  214. def tn(singular: String, plural: String, n: Long, args: Any*): String

    Permalink

    formatLocal using the current locale.

    formatLocal using the current locale.

    Definition Classes
    I18n
  215. def tn(singular: String, plural: String, n: Long): String

    Permalink
    Definition Classes
    I18n
  216. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  217. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  218. def url[T <: Action](implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  219. def url[T <: Action](params: (String, Any)*)(implicit arg0: Manifest[T]): String

    Permalink
    Definition Classes
    Url
  220. def url(params: (String, Any)*): String

    Permalink
    Definition Classes
    Url
  221. lazy val url: String

    Permalink
    Definition Classes
    Url
  222. lazy val urlParams: Params

    Permalink

    The merge of queryParams and pathParams, things that appear in the request URL.

    The merge of queryParams and pathParams, things that appear in the request URL.

    Definition Classes
    RequestEnv
  223. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  226. def webJarsUrl(directory: String, devFile: String, prodFile: String): String

    Permalink

    Ex: webJarsUrl("jquery/3.3.1/dist", "jquery.js", "jquery.min.js")

    Ex: webJarsUrl("jquery/3.3.1/dist", "jquery.js", "jquery.min.js")

    devFile

    File in the directory to use in development mode

    prodFile

    File in the directory to use in production mode

    Definition Classes
    Url
  227. def webJarsUrl(devPath: String, prodPath: String): String

    Permalink

    Ex: webJarsUrl("jquery/3.3.1/dist/jquery.js", "jquery/3.3.1/dist/jquery.min.js")

    Ex: webJarsUrl("jquery/3.3.1/dist/jquery.js", "jquery/3.3.1/dist/jquery.min.js")

    devPath

    File path to use in development mode

    prodPath

    File path to use in production mode

    Definition Classes
    Url
  228. def webJarsUrl(path: String): String

    Permalink

    path

    Use "myapp/foo.js" to specify "META-INF/resources/webjars/myapp/foo.js"

    Definition Classes
    Url
  229. lazy val webSocketScheme: String

    Permalink
    Definition Classes
    Net
  230. lazy val xitrumCss: Elem

    Permalink
    Definition Classes
    FlashRenderer

Inherited from PublisherLookUp

Inherited from SockJsAction

Inherited from Action

Inherited from I18n

Inherited from JsResponder

Inherited from JsRenderer

Inherited from FlashResponder

Inherited from FlashRenderer

Inherited from ViewResponder

Inherited from Responder

Inherited from ViewRenderer

Inherited from Renderer

Inherited from Url

Inherited from Redirect

Inherited from BasicAuth

Inherited from Filter

Inherited from Net

Inherited from Log

Inherited from SessionEnv

Inherited from Csrf

Inherited from RequestEnv

Inherited from ParamAccess

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped