org.scalatra.scalate

ScalatraRenderContext

class ScalatraRenderContext extends ServletRenderContext

A render context integrated with Scalatra. Exposes a few extra standard bindings to the template.

Linear Supertypes
ServletRenderContext, DefaultRenderContext, RenderContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalatraRenderContext
  2. ServletRenderContext
  3. DefaultRenderContext
  4. RenderContext
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalatraRenderContext(scalate: ScalateSupport)

  2. new ScalatraRenderContext(scalate: ScalateSupport, request: HttpServletRequest, response: HttpServletResponse)

  3. new ScalatraRenderContext(kernel: ScalatraKernel, engine: TemplateEngine, out: PrintWriter, request: HttpServletRequest, response: HttpServletResponse)

Type Members

  1. case class Unescaped extends Product with Serializable

    Definition Classes
    RenderContext

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. def <<(v: Any): Unit

    Definition Classes
    DefaultRenderContext → RenderContext
  5. def <<<(v: Any): Unit

    Definition Classes
    DefaultRenderContext → RenderContext
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def attribute[T](name: String): T

    Definition Classes
    RenderContext
  10. def attributeKeys: List[String]

    Definition Classes
    RenderContext
  11. def attributeOrElse[T](name: String, defaultValue: ⇒ T): T

    Definition Classes
    RenderContext
  12. val attributes: AttributeMap

    Definition Classes
    ServletRenderContext → DefaultRenderContext → RenderContext
  13. def blankString: String

    Attributes
    protected
    Definition Classes
    RenderContext
  14. def capture(template: Template): String

    Definition Classes
    DefaultRenderContext → RenderContext
  15. def capture(body: ⇒ Unit): String

    Definition Classes
    DefaultRenderContext → RenderContext
  16. def captureAttribute(name: String)(body: ⇒ Unit): Unit

    Definition Classes
    RenderContext
  17. def captureAttributeAppend(name: String)(body: ⇒ Unit): Unit

    Definition Classes
    RenderContext
  18. def captureNodeSeq(template: Template): NodeSeq

    Definition Classes
    RenderContext
  19. def captureNodeSeq(body: ⇒ Unit): NodeSeq

    Definition Classes
    RenderContext
  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def collection(objects: Traversable[AnyRef], viewName: String, separator: ⇒ Any): Unit

    Definition Classes
    RenderContext
  22. def contextPath: String

    Definition Classes
    ServletRenderContext
  23. var currentTemplate: String

    Definition Classes
    RenderContext
  24. def currentUriMinus(newQueryArgs: String): String

    Definition Classes
    ServletRenderContext
  25. def currentUriPlus(newQueryArgs: String): String

    Definition Classes
    ServletRenderContext
  26. def dateFormat: DateFormat

    Definition Classes
    RenderContext
  27. def dateFormat_=(value: DateFormat): Unit

    Definition Classes
    RenderContext
  28. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  30. def escape(v: Any): Unit

    Definition Classes
    RenderContext
  31. var escapeMarkup: Boolean

    Definition Classes
    RenderContext
  32. def filter(name: String, content: String): String

    Definition Classes
    RenderContext
  33. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def flash: Map[String, Any]

  35. def flush: Unit

    Definition Classes
    DefaultRenderContext
  36. def format(pattern: String, args: AnyRef*): String

    Definition Classes
    RenderContext
  37. def forward(page: String, escape: Boolean): Unit

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

    Definition Classes
    AnyRef → Any
  39. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  40. def include(path: String, layout: Boolean, extraBindings: Traversable[Binding]): Unit

    Definition Classes
    RenderContext
  41. def include(path: String, layout: Boolean): Unit

    Definition Classes
    RenderContext
  42. def include(path: String): Unit

    Definition Classes
    RenderContext
  43. def inject[T](implicit manifest: ClassTag[T]): T

    Definition Classes
    RenderContext
  44. def introspect(aType: Class[_]): Introspector[_]

    Definition Classes
    RenderContext
  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. val kernel: ScalatraKernel

    Attributes
    protected
  47. def layout(path: String, attrMap: Map[String, Any])(body: ⇒ Unit): Unit

    Definition Classes
    RenderContext
  48. def load(uri: String): String

    Definition Classes
    RenderContext
  49. def locale: Locale

    Definition Classes
    ServletRenderContext → RenderContext
  50. def multiParams: MultiParams

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

    Definition Classes
    AnyRef
  52. var noneString: String

    Definition Classes
    RenderContext
  53. final def notify(): Unit

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

    Definition Classes
    AnyRef
  55. var nullString: String

    Definition Classes
    RenderContext
  56. def numberFormat: NumberFormat

    Definition Classes
    RenderContext
  57. def numberFormat_=(value: NumberFormat): Unit

    Definition Classes
    RenderContext
  58. def parameter(name: String): String

    Definition Classes
    ServletRenderContext
  59. def parameterValues(name: String): Array[String]

    Definition Classes
    ServletRenderContext
  60. def params: Map[String, String]

  61. def percent(number: Number): String

    Definition Classes
    RenderContext
  62. def percentFormat: NumberFormat

    Definition Classes
    RenderContext
  63. def percentFormat_=(value: NumberFormat): Unit

    Definition Classes
    RenderContext
  64. def queryString: String

    Definition Classes
    ServletRenderContext
  65. def removeOldAttributes: Boolean

    Attributes
    protected
    Definition Classes
    RenderContext
  66. def render(path: String, attributeMap: Map[String, Any]): Unit

    Definition Classes
    RenderContext
  67. def requestDispatcher(page: String): RequestDispatcher

    Attributes
    protected
    Definition Classes
    ServletRenderContext
  68. def requestFile: Option[File]

    Definition Classes
    DefaultRenderContext → RenderContext
  69. def requestResource: Option[Resource]

    Definition Classes
    DefaultRenderContext → RenderContext
  70. def requestUri: String

    Definition Classes
    ServletRenderContext → DefaultRenderContext → RenderContext
  71. def resolveUri(path: String): String

    Attributes
    protected
    Definition Classes
    RenderContext
  72. def resource[T]: T

    Definition Classes
    RenderContext
  73. def resourceOrElse[T](defaultValue: T): T

    Definition Classes
    RenderContext
  74. def servlet(page: String, escape: Boolean): Unit

    Definition Classes
    ServletRenderContext
  75. def servletConfig: Config

    Definition Classes
    ServletRenderContext
  76. val servletContext: ServletContext

    Definition Classes
    ServletRenderContext
  77. def session: HttpSession

  78. def sessionOption: Option[HttpSession]

  79. def setAttribute(name: String, value: Option[Any]): Unit

    Definition Classes
    RenderContext
  80. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  81. def toString(): String

    Definition Classes
    AnyRef → Any
  82. implicit def toStringPair(entry: (Symbol, Any)): (String, Any)

    Definition Classes
    RenderContext
  83. def unescape(v: Any): Unit

    Definition Classes
    RenderContext
  84. def uri(uri: String): String

    Definition Classes
    ServletRenderContext → RenderContext
  85. def uri(file: File): Option[String]

    Definition Classes
    RenderContext
  86. def using[T](model: AnyRef)(op: ⇒ T): T

    Attributes
    protected
    Definition Classes
    RenderContext
  87. def value(any: Any, shouldSanitize: Boolean): Any

    Definition Classes
    RenderContext
  88. def valueEscaped(any: Any): Any

    Definition Classes
    RenderContext
  89. def valueUnescaped(any: Any): Any

    Definition Classes
    RenderContext
  90. def view(model: AnyRef, viewName: String): Unit

    Definition Classes
    RenderContext
  91. var viewPostfixes: List[String]

    Definition Classes
    RenderContext
  92. var viewPrefixes: List[String]

    Definition Classes
    RenderContext
  93. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  96. def withAttributes[T](attrMap: Map[String, Any])(block: ⇒ T): T

    Definition Classes
    RenderContext
  97. def withUri[T](uri: String)(block: ⇒ T): T

    Definition Classes
    RenderContext
  98. var wrapCssInCData: Boolean

    Definition Classes
    RenderContext
  99. def wrappedRequest: WrappedRequest

    Attributes
    protected
    Definition Classes
    ServletRenderContext
  100. def wrappedResponse: WrappedResponse

    Attributes
    protected
    Definition Classes
    ServletRenderContext

Inherited from ServletRenderContext

Inherited from DefaultRenderContext

Inherited from RenderContext

Inherited from AnyRef

Inherited from Any

Ungrouped