skinny.filter

SkinnyFilter

trait SkinnyFilter extends controller.SkinnyController with SkinnyFilterActivation

Skinny Filter.

For example:

class BooksController extends SkinnyController
with TxPerRequestFiler
with SkinnyFilterActivation {

// within a transaction
def changeTitle = {
  if (...) {
    throw new UnexpectedErrorException
    // rollback
  } else {
    redirect(s"/books/${id}")
    // commit
  }
}
}

If you use Scatatra's filter - before/after, be careful. It's pretty tricky. Because Scalatra's filters would be applied for all the controllers difined below in ScalatraBootstrap. Just using beforeAction/afterAction is highly recommended.

Linear Supertypes
SkinnyFilterActivation, controller.SkinnyController, controller.SkinnyControllerBase, ParamsPermitImplicits, ParametersGetAsImplicits, RoutesAsImplicits, CSRFProtectionFeature, CsrfTokenSupport, ScalateTemplateEngineFeature, ScalateUrlGeneratorSupport, ScalateSupport, TemplateEngineFeature, JSONFeature, JSONStringOps, JacksonJsonSupport, JValueResult, JacksonJsonOutput, JsonMethods, JsonSupport[JValue], JsonOutput[JValue], JsonMethods[JValue], ApiFormats, ValidationFeature, FlashFeature, FlashMapSupport, BeforeAfterActionFeature, ActionDefinitionFeature, RequestScopeFeature, Logging, LocaleFeature, SnakeCasedParamKeysFeature, ExplicitRedirectFeature, UrlGeneratorSupport, RichRouteFeature, EnvFeature, SkinnyScalatraBase, ScalatraFilter, ServletBase, ScalatraBase, CookieSupport, DefaultImplicitConversions, LowPriorityImplicitConversions, LowestPriorityImplicitConversions, TypeConverterSupport, ScalatraParamsImplicits, Initializable, DynamicScope, RequestResponseScope, CoreDsl, Control, Handler, ScalatraContext, CookieContext, SessionSupport, ServletApiImplicits, Filter, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SkinnyFilter
  2. SkinnyFilterActivation
  3. SkinnyController
  4. SkinnyControllerBase
  5. ParamsPermitImplicits
  6. ParametersGetAsImplicits
  7. RoutesAsImplicits
  8. CSRFProtectionFeature
  9. CsrfTokenSupport
  10. ScalateTemplateEngineFeature
  11. ScalateUrlGeneratorSupport
  12. ScalateSupport
  13. TemplateEngineFeature
  14. JSONFeature
  15. JSONStringOps
  16. JacksonJsonSupport
  17. JValueResult
  18. JacksonJsonOutput
  19. JsonMethods
  20. JsonSupport
  21. JsonOutput
  22. JsonMethods
  23. ApiFormats
  24. ValidationFeature
  25. FlashFeature
  26. FlashMapSupport
  27. BeforeAfterActionFeature
  28. ActionDefinitionFeature
  29. RequestScopeFeature
  30. Logging
  31. LocaleFeature
  32. SnakeCasedParamKeysFeature
  33. ExplicitRedirectFeature
  34. UrlGeneratorSupport
  35. RichRouteFeature
  36. EnvFeature
  37. SkinnyScalatraBase
  38. ScalatraFilter
  39. ServletBase
  40. ScalatraBase
  41. CookieSupport
  42. DefaultImplicitConversions
  43. LowPriorityImplicitConversions
  44. LowestPriorityImplicitConversions
  45. TypeConverterSupport
  46. ScalatraParamsImplicits
  47. Initializable
  48. DynamicScope
  49. RequestResponseScope
  50. CoreDsl
  51. Control
  52. Handler
  53. ScalatraContext
  54. CookieContext
  55. SessionSupport
  56. ServletApiImplicits
  57. Filter
  58. AnyRef
  59. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Config extends AnyRef

    Definition Classes
    Initializable
  2. type ConfigT = FilterConfig

    Definition Classes
    ScalatraFilter → ServletBase → Initializable
  3. sealed trait RenderingRequired extends AnyRef

    Definition Classes
    SkinnyFilterActivation
  4. trait ScalatraTemplateEngine extends AnyRef

    Definition Classes
    ScalateSupport
  5. sealed class TypedMultiParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits
  6. sealed class TypedParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits

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. object WithRendering extends (SkinnyFilterActivation.this)#RenderingRequired with Product with Serializable

    Definition Classes
    SkinnyFilterActivation
  7. object WithoutRendering extends (SkinnyFilterActivation.this)#RenderingRequired with Product with Serializable

    Definition Classes
    SkinnyFilterActivation
  8. def acceptHeader(implicit request: HttpServletRequest): List[String]

    Definition Classes
    ApiFormats
  9. def acceptedFormats(accepted: Symbol*): Boolean

    Attributes
    protected
    Definition Classes
    ApiFormats
  10. val actionDefinitions: ArrayBuffer[ActionDefinition]

    Note: Same action method name should be registered several times.

    Note: Same action method name should be registered several times. For example, put("/members/:id")(...).as('update) and patch("/members/:id")(...).as('update).

    Attributes
    protected
    Definition Classes
    ActionDefinitionFeature
  11. def addActionDefinition(actionDef: ActionDefinition): Unit

    Adds action definition

    Adds action definition

    actionDef

    action definition

    Definition Classes
    ActionDefinitionFeature
  12. def addErrorFilter(handler: ErrorHandler): Unit

    Adds error handler which doesn't return result to SkinnyController.

    Adds error handler which doesn't return result to SkinnyController.

    handler

    Definition Classes
    SkinnyFilterActivation
  13. def addMimeMapping(mime: String, extension: String): Unit

    Attributes
    protected
    Definition Classes
    ApiFormats
  14. def addParam(name: String, value: Any): Unit

    Add param to params in the request scope.

    Add param to params in the request scope.

    name

    name

    value

    value

    Definition Classes
    RequestScopeFeature
  15. def addRoute(method: HttpMethod, transformers: Seq[(Route) ⇒ Route], action: ⇒ Any): Route

    Override to append HTTP method information to Route objects.

    Override to append HTTP method information to Route objects.

    Attributes
    protected
    Definition Classes
    RichRouteFeature → ScalatraBase
  16. def addSessionId(uri: String)(implicit response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  17. def addStatusRoute(codes: Range, action: ⇒ Any): Unit

    Attributes
    protected[org.scalatra]
    Definition Classes
    ScalatraBase
  18. def after(transformers: (Route) ⇒ Route*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  19. def afterAction(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    Registers afterAction to this controller.

    Registers afterAction to this controller.

    only

    this action should be applied only for these action methods

    except

    this action should not be applied for these action methods

    action

    action

    Definition Classes
    BeforeAfterActionFeature
  20. def afterFilter(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    If you prefer #afterFilter than #afterAction, keep going!

    If you prefer #afterFilter than #afterAction, keep going!

    Definition Classes
    BeforeAfterActionFeature
  21. implicit val anyToBoolean: org.scalatra.util.conversion.TypeConverter[Any, Boolean]

    Definition Classes
    LowPriorityImplicitConversions
  22. implicit val anyToByte: org.scalatra.util.conversion.TypeConverter[Any, Byte]

    Definition Classes
    LowPriorityImplicitConversions
  23. implicit val anyToDouble: org.scalatra.util.conversion.TypeConverter[Any, Double]

    Definition Classes
    LowPriorityImplicitConversions
  24. implicit val anyToFloat: org.scalatra.util.conversion.TypeConverter[Any, Float]

    Definition Classes
    LowPriorityImplicitConversions
  25. implicit val anyToInt: org.scalatra.util.conversion.TypeConverter[Any, Int]

    Definition Classes
    LowPriorityImplicitConversions
  26. implicit val anyToLong: org.scalatra.util.conversion.TypeConverter[Any, Long]

    Definition Classes
    LowPriorityImplicitConversions
  27. implicit val anyToShort: org.scalatra.util.conversion.TypeConverter[Any, Short]

    Definition Classes
    LowPriorityImplicitConversions
  28. implicit val anyToString: org.scalatra.util.conversion.TypeConverter[Any, String]

    Definition Classes
    LowPriorityImplicitConversions
  29. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  30. def asJValue[T](obj: T)(implicit writer: Writer[T]): JValue

    Definition Classes
    JsonMethods
  31. def before(transformers: (Route) ⇒ Route*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  32. def beforeAction(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    Registers beforeAction to this controller.

    Registers beforeAction to this controller.

    only

    this action should be applied only for these action methods

    except

    this action should not be applied for these action methods

    action

    action

    Definition Classes
    BeforeAfterActionFeature
  33. def beforeFilter(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    If you prefer #beforeFilter than #beforeAction, keep going!

    If you prefer #beforeFilter than #beforeAction, keep going!

    Definition Classes
    BeforeAfterActionFeature
  34. implicit def booleanBlock2RouteMatcher(block: ⇒ Boolean): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  35. def cacheRequestBodyAsString: Boolean

    Attributes
    protected
    Definition Classes
    JsonSupport
  36. lazy val charset: Option[String]

    Default charset.

    Default charset.

    Definition Classes
    TemplateEngineFeature
  37. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def compact(d: JValue): String

    Definition Classes
    JsonMethods → JsonMethods
  39. var config: ConfigT

    Definition Classes
    ScalatraBase
  40. implicit def configWrapper(config: ConfigT): Config { object initParameters }

    Attributes
    protected
    Definition Classes
    ServletBase → Initializable
  41. def contentType: String

    Definition Classes
    ScalatraContext
  42. def contentTypeInferrer: ContentTypeInferrer

    Attributes
    protected
    Definition Classes
    ApiFormats → ScalatraBase
  43. def contentType_=(contentType: String): Unit

    Definition Classes
    ScalatraContext
  44. def contextPath: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  45. implicit def convertParamsToStrongParameters(params: org.scalatra.Params): StrongParameters

    Definition Classes
    ParamsPermitImplicits
  46. implicit def convertRouteToRichRoute(route: Route)(implicit controller: controller.SkinnyControllerBase): RichRoute

    Definition Classes
    RoutesAsImplicits
  47. implicit def cookieOptions: CookieOptions

    Definition Classes
    CookieContext
  48. def cookies: SweetCookies

    Definition Classes
    CookieContext
  49. def createI18n()(implicit locale: Locale = currentLocale.orNull[Locale]): I18n

    Creates skinny.

    Creates skinny.I18n instance for current locale.

    locale

    current locale

    returns

    i18n provider

    Attributes
    protected
    Definition Classes
    SkinnyControllerBase
  50. def createRenderContext(req: HttpServletRequest = request, resp: HttpServletResponse = response, out: PrintWriter = response.getWriter): RenderContext

    Creates a RenderContext instance for Skinny app.

    Creates a RenderContext instance for Skinny app.

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeature → ScalateUrlGeneratorSupport → ScalateSupport
  51. def createTemplateEngine(config: ConfigT): TemplateEngine

    Creates TemplateEngine instance for Skinny app.

    Creates TemplateEngine instance for Skinny app.

    config

    configuration

    returns

    TemplateEngine instance

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeature → ScalateUrlGeneratorSupport → ScalateSupport
  52. def csrfKey: String

    Overrides Scalatra's default key name.

    Overrides Scalatra's default key name.

    Definition Classes
    CSRFProtectionFeature → CsrfTokenSupport
  53. def csrfToken(implicit request: HttpServletRequest): String

    Attributes
    protected[org.scalatra]
    Definition Classes
    CsrfTokenSupport
  54. def currentActionName: Option[Symbol]

    Returns action name for this request.

    Returns action name for this request.

    returns

    action name

    Definition Classes
    ActionDefinitionFeature
  55. def currentLocale: Option[Locale]

    Returns current locale for this request.

    Returns current locale for this request.

    returns

    current locale

    Attributes
    protected
    Definition Classes
    LocaleFeature
  56. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  57. def debug(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  58. def defaultAcceptedFormats: List[Symbol]

    Definition Classes
    ApiFormats
  59. val defaultCharacterEncoding: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  60. def defaultFormat: Symbol

    Definition Classes
    ApiFormats
  61. def defaultIndexName: String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  62. def defaultLayoutPath: Option[String]

    Attributes
    protected
    Definition Classes
    ScalateSupport
  63. def defaultLocale: Option[Locale]

    Returns default locale.

    Returns default locale.

    Attributes
    protected
    Definition Classes
    LocaleFeature
  64. implicit def defaultStringToSeq[T](implicit elementConverter: org.scalatra.util.conversion.TypeConverter[String, T], mf: Manifest[T]): org.scalatra.util.conversion.TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  65. def defaultTemplateFormat: String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  66. def defaultTemplatePath: List[String]

    Overrides to make the template path simpler.

    Overrides to make the template path simpler.

    returns

    paths

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeature → ScalateSupport
  67. def delete(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  68. def destroy(): Unit

    Definition Classes
    ScalatraFilter → Filter
  69. def doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain): Unit

    Definition Classes
    ScalatraFilter → Filter
  70. var doMethodNotAllowed: (Set[HttpMethod]) ⇒ Any

    Attributes
    protected
    Definition Classes
    ScalatraBase
  71. var doNotFound: () ⇒ Any

    Attributes
    protected
    Definition Classes
    ScalatraFilter → ScalatraBase
  72. implicit def enrichRequest(request: HttpServletRequest): RichRequest

    Definition Classes
    ServletApiImplicits
  73. implicit def enrichResponse(response: HttpServletResponse): RichResponse

    Definition Classes
    ServletApiImplicits
  74. implicit def enrichServletContext(servletContext: javax.servlet.ServletContext): RichServletContext

    Definition Classes
    ServletApiImplicits
  75. implicit def enrichSession(session: HttpSession): RichSession

    Definition Classes
    ServletApiImplicits
  76. def environment: String

    Definition Classes
    ScalatraBase
  77. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  79. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  80. def error(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  81. def error(handler: ErrorHandler): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  82. var errorHandler: ErrorHandler

    Attributes
    protected
    Definition Classes
    ScalatraBase
  83. def executeRoutes(): Unit

    Attributes
    protected
    Definition Classes
    SkinnyScalatraBase → ScalatraBase
  84. def filterChain: FilterChain

    Attributes
    protected
    Definition Classes
    ScalatraFilter
  85. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  86. def findTemplate(path: String, extensionSet: Set[String]): Option[String]

    Attributes
    protected
    Definition Classes
    ScalateSupport
  87. def flash(key: String)(implicit request: HttpServletRequest): Any

    Definition Classes
    FlashMapSupport
  88. def flash(implicit request: HttpServletRequest): FlashMap

    Definition Classes
    FlashMapSupport
  89. def flashMapSetSession(f: FlashMap): Unit

    Definition Classes
    FlashMapSupport
  90. def format(implicit request: HttpServletRequest): String

    Definition Classes
    ApiFormats
  91. def formatForMimeTypes(mimeTypes: String*): Option[String]

    Attributes
    protected
    Definition Classes
    ApiFormats
  92. def format_=(formatValue: String): Unit

    Definition Classes
    ScalatraContext
  93. def format_=(formatValue: Symbol): Unit

    Definition Classes
    ScalatraContext
  94. val formats: Map[String, String]

    Definition Classes
    ApiFormats
  95. def fromJSONString[A](json: String)(implicit mf: Manifest[A]): Option[A]

    Extracts a value from JSON string.

    Extracts a value from JSON string.

    A

    type

    json

    json string

    returns

    value

    Definition Classes
    JSONStringOps
  96. def fromJValue[T](json: JValue)(implicit reader: Reader[T]): T

    Definition Classes
    JsonMethods
  97. def fullUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  98. def generateWelcomePageIfAbsent(path: String)(implicit format: Format = Format.HTML): Unit

    Generates a sample page for absent page.

    Generates a sample page for absent page.

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeature
  99. def get(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  100. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  101. def halt(result: ActionResult): Nothing

    Definition Classes
    Control
  102. def halt[T](status: Integer, body: T, headers: Map[String, String], reason: String)(implicit arg0: Manifest[T]): Nothing

    Definition Classes
    Control
  103. def haltWithBody[A](httpStatus: Int)(implicit format: Format = Format.HTML): A

    Halts with body which responds to the specified format.

    Halts with body which responds to the specified format.

    A

    response type

    httpStatus

    http status

    format

    format (HTML,JSON,XML...)

    returns

    body if possible

    Definition Classes
    TemplateEngineFeature
  104. def handle(req: HttpServletRequest, res: HttpServletResponse): Unit

    Definition Classes
    ScalateSupport → ServletBase → ScalatraBase → Handler
  105. def handleForgery(): Unit

    Overrides to skip execution when the current request matches excluded patterns.

    Overrides to skip execution when the current request matches excluded patterns.

    Definition Classes
    CSRFProtectionFeature → CsrfTokenSupport
  106. def handleForgeryIfDetected(): Unit

    Handles when CSRF is detected.

    Handles when CSRF is detected.

    Definition Classes
    CSRFProtectionFeature
  107. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  108. def inferFromFormats: ContentTypeInferrer

    Attributes
    protected
    Definition Classes
    ApiFormats
  109. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  110. def info(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  111. def init(filterConfig: FilterConfig): Unit

    Definition Classes
    ScalatraFilter → Filter
  112. def initParameter(name: String): Option[String]

    Definition Classes
    ScalatraBase
  113. def initialize(config: ConfigT): Unit

    Definition Classes
    ScalateSupport → ScalatraBase → Initializable
  114. def invoke(matchedRoute: MatchedRoute): Option[Any]

    Attributes
    protected
    Definition Classes
    JsonSupport → ScalatraBase
  115. def isAsyncExecutable(result: Any): Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  116. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  117. def isDevelopment(): Boolean

    Predicates current env is "development" or "dev".

    Predicates current env is "development" or "dev".

    returns

    true/false

    Definition Classes
    EnvFeature
  118. def isDevelopmentMode: Boolean

    Definition Classes
    ScalatraBase
  119. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  120. def isForged: Boolean

    Attributes
    protected
    Definition Classes
    CsrfTokenSupport
  121. def isHttps(implicit request: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  122. def isInfoEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  123. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  124. def isProduction(): Boolean

    Predicates current env is "production" or "prod".

    Predicates current env is "production" or "prod".

    returns

    true/false

    Definition Classes
    EnvFeature
  125. def isScalateErrorPageEnabled: Boolean

    To deal with exceptions.

    To deal with exceptions.

    http://www.scalatra.org/guides/views/scalate.html#toc_303

    Definition Classes
    ScalateTemplateEngineFeature → ScalateSupport
  126. def isStaging(): Boolean

    Predicates current env is "staging" or "qa".

    Predicates current env is "staging" or "qa".

    returns

    true/false

    Definition Classes
    EnvFeature
  127. def isTest(): Boolean

    Predicates current env is "test".

    Predicates current env is "test".

    returns

    true/false

    Definition Classes
    EnvFeature
  128. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  129. def isWarnEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  130. def jade(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  131. implicit val jsonFormats: Formats

    JSON format support implicitly.

    JSON format support implicitly.

    Attributes
    protected
    Definition Classes
    JSONStringOps
  132. lazy val jsonVulnerabilityGuard: Boolean

    Attributes
    protected
    Definition Classes
    JsonOutput
  133. def jsonpCallbackParameterNames: Iterable[String]

    Definition Classes
    JsonOutput
  134. def layout(path: String)(implicit request: HttpServletRequest): ScalateTemplateEngineFeature

    Replaces layout template for this action.

    Replaces layout template for this action.

    path

    the layout template path, including extension, e.g. "custom.jade"

    Definition Classes
    ScalateTemplateEngineFeature
  135. def layoutTemplate(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  136. def layoutTemplateAs(ext: Set[String])(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  137. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  138. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  139. implicit def lowestPriorityAny2T[T](implicit arg0: Manifest[T]): org.scalatra.util.conversion.TypeConverter[Any, T]

    Definition Classes
    LowestPriorityImplicitConversions
  140. def mapper: ObjectMapper

    Definition Classes
    JsonMethods
  141. def methodNotAllowed(f: (Set[HttpMethod]) ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  142. val mimeTypes: Map[String, String]

    Definition Classes
    ApiFormats
  143. def mount(ctx: ServletContext): Unit

    Definition Classes
    RichRouteFeature
  144. def multiParams(implicit request: HttpServletRequest): org.scalatra.MultiParams

    Definition Classes
    ScalatraBase
  145. def multiParams(key: String)(implicit request: HttpServletRequest): Seq[String]

    Definition Classes
    ScalatraBase
  146. def mustache(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  147. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  148. def needsHttps: Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  149. def notFound(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  150. final def notify(): Unit

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

    Definition Classes
    AnyRef
  152. def numberFormat: DecimalFormat

    Creates a DecimalFormat instance to be use by default.

    Creates a DecimalFormat instance to be use by default.

    Definition Classes
    ScalateTemplateEngineFeature
  153. def options(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  154. def params(implicit request: HttpServletRequest): org.scalatra.Params

    Definition Classes
    ScalatraBase
  155. def params(key: Symbol)(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  156. def params(key: String)(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  157. def parse(in: JsonInput, useBigDecimalForDouble: Boolean): JValue

    Definition Classes
    JsonMethods → JsonMethods
  158. def parseOpt(in: JsonInput, useBigDecimalForDouble: Boolean): Option[JValue]

    Definition Classes
    JsonMethods → JsonMethods
  159. def parseRequestBody(format: String)(implicit request: HttpServletRequest): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  160. def parsedBody(implicit request: HttpServletRequest): JValue

    Definition Classes
    JsonSupport
  161. def pass(): Nothing

    Definition Classes
    Control
  162. def patch(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  163. implicit def pathPatternParser2RouteMatcher(pattern: PathPattern): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  164. def post(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  165. def preferredScalateExtension: String

    The Scalate template type that is searched for first.

    The Scalate template type that is searched for first.

    Definition Classes
    ScalateTemplateEngineFeature
  166. def prepareCsrfToken(): Any

    Attributes
    protected
    Definition Classes
    CsrfTokenSupport
  167. def pretty(d: JValue): String

    Definition Classes
    JsonMethods → JsonMethods
  168. def protectFromForgery(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil): Unit

    Declarative activation of CSRF protection.

    Declarative activation of CSRF protection. Of course, highly inspired by Ruby on Rails.

    only

    should be applied only for these action methods

    except

    should not be applied for these action methods

    Definition Classes
    CSRFProtectionFeature
  169. def put(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

    Definition Classes
    ScalatraBase → CoreDsl
  170. def readJsonFromBody(bd: String): JValue

    Attributes
    protected
    Definition Classes
    JacksonJsonSupport → JsonSupport
  171. def readJsonFromStream(stream: InputStream): JValue

    Attributes
    protected
    Definition Classes
    JacksonJsonSupport → JsonSupport
  172. def readXmlFromBody(bd: String): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  173. def readXmlFromStream(stream: InputStream): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  174. def redirect(uri: String)(implicit request: HttpServletRequest, response: HttpServletResponse): Nothing

    Definition Classes
    ScalatraBase
  175. def redirect301(location: String, headers: Map[String, String] = Map.empty, reason: String = ""): ActionResult

    Responds as "301 Moved Permanently"

    Responds as "301 Moved Permanently"

    returns

    ActionResult

    Definition Classes
    ExplicitRedirectFeature
  176. def redirect302(location: String, headers: Map[String, String] = Map.empty, reason: String = ""): ActionResult

    Responds as "302 Found"

    Responds as "302 Found"

    returns

    ActionResult

    Definition Classes
    ExplicitRedirectFeature
  177. def redirect303(location: String, headers: Map[String, String] = Map.empty, reason: String = ""): ActionResult

    Responds as "303 See Other"

    Responds as "303 See Other"

    returns

    ActionResult

    Definition Classes
    ExplicitRedirectFeature
  178. lazy val reflectRoutes: Map[String, Route]

    Definition Classes
    ScalateUrlGeneratorSupport
  179. implicit def regex2RouteMatcher(regex: Regex): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  180. def relativeUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  181. def removeRoute(method: String, route: Route): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  182. def removeRoute(method: HttpMethod, route: Route): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  183. def render(path: String)(implicit format: Format = Format.HTML): String

    Renders body with template.

    Renders body with template.

    path

    path name

    format

    format (HTML,JSON,XML...)

    returns

    body

    Definition Classes
    TemplateEngineFeature
  184. def render(value: JValue): JValue

    Definition Classes
    JsonMethods → JsonMethods
  185. def renderHaltException(e: HaltException): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  186. def renderPipeline: RenderPipeline

    Attributes
    protected
    Definition Classes
    JValueResult → ScalatraBase
  187. def renderResponse(actionResult: Any): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  188. def renderResponseBody(actionResult: Any): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  189. def renderUncaughtException(e: Throwable)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Attributes
    protected[org.scalatra]
    Definition Classes
    ScalateSupport → ScalatraBase
  190. def renderWithFormat(entity: Any)(implicit format: Format = Format.HTML): Option[String]

    Renders body which responds to the specified format (JSON, XML) if possible.

    Renders body which responds to the specified format (JSON, XML) if possible.

    entity

    entity

    format

    format (HTML,JSON,XML...)

    returns

    body if possible

    Attributes
    protected
    Definition Classes
    TemplateEngineFeature
  191. def renderWithTemplate(path: String)(implicit format: Format = Format.HTML): String

    Renders body with template.

    Renders body with template.

    path

    path name

    format

    format (HTML,JSON,XML...)

    returns

    true/false

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeatureTemplateEngineFeature
  192. implicit def request: HttpServletRequest

    Definition Classes
    DynamicScope → RequestResponseScope
  193. def requestPath(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraFilter → ScalatraBase
  194. def requestScope[A](key: String): Option[A]

    Fetches value from request scope.

    Fetches value from request scope.

    A

    type

    key

    key

    returns

    value if exists

    Definition Classes
    RequestScopeFeature
  195. def requestScope(keyAndValues: Seq[(String, Any)]): RequestScopeFeature

    Set attributes to request scope.

    Set attributes to request scope.

    keyAndValues

    collection of key and value.

    returns

    self

    Definition Classes
    RequestScopeFeature
  196. def requestScope(keyAndValue: (String, Any)): RequestScopeFeature

    Set attribute to request scope.

    Set attribute to request scope.

    keyAndValue

    key and value

    returns

    self

    Definition Classes
    RequestScopeFeature
  197. def requestScope(): Map[String, Any]

    Returns whole request scope attributes.

    Returns whole request scope attributes.

    returns

    whole attributes

    Definition Classes
    RequestScopeFeature
  198. def respondTo: Seq[Format]

    Defines formats to be respond.

    Defines formats to be respond. By default, HTML, JSON, XML are available.

    returns

    formats

    Attributes
    protected
    Definition Classes
    SkinnyControllerBase
  199. implicit def response: HttpServletResponse

    Definition Classes
    DynamicScope → RequestResponseScope
  200. def responseAsJSON(entity: Any, charset: Option[String] = Some("utf-8"), prettify: Boolean = false): String

    Returns JSON response.

    Returns JSON response.

    entity

    entity

    charset

    charset

    prettify

    prettify if true

    returns

    body

    Definition Classes
    JSONFeature
  201. def responseFormat(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ApiFormats
  202. def routeBasePath(implicit request: HttpServletRequest): String

    Attributes
    protected
    Definition Classes
    ScalatraFilter → ScalatraBase
  203. lazy val routes: RouteRegistry

    Definition Classes
    ScalatraBase
  204. def runFilters(filters: Traversable[Route]): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  205. def runRoutes(routes: Traversable[Route]): Stream[Any]

    Attributes
    protected
    Definition Classes
    ScalatraBase
  206. implicit def safe[S, T](f: (S) ⇒ T): org.scalatra.util.conversion.TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  207. implicit def safeOption[S, T](f: (S) ⇒ Option[T]): org.scalatra.util.conversion.TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  208. def scalateExtensions: List[String]

    Scalate extension names.

    Scalate extension names. Skinny will search for templates in this order.

    If you'd like to change the search order, or you want to restrict the search to fewer template languages, override this attribute.

    Note that removing unnecessary items from this list will improve the performance of the template engine.

    Definition Classes
    ScalateTemplateEngineFeature
  209. implicit def scalatraContext: ScalatraContext

    Attributes
    protected[this]
    Definition Classes
    ScalatraContext
  210. def scaml(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  211. implicit def seqHead[T](implicit elementConverter: org.scalatra.util.conversion.TypeConverter[String, T], mf: Manifest[T]): org.scalatra.util.conversion.TypeConverter[Seq[String], T]

    Definition Classes
    DefaultImplicitConversions
  212. implicit def seqToSeq[T](implicit elementConverter: org.scalatra.util.conversion.TypeConverter[String, T], mf: Manifest[T]): org.scalatra.util.conversion.TypeConverter[Seq[String], Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  213. def serverHost(implicit request: HttpServletRequest): String

    Definition Classes
    ScalatraBase
  214. def serverPort(implicit request: HttpServletRequest): Int

    Definition Classes
    ScalatraBase
  215. def servletContext: javax.servlet.ServletContext

    Definition Classes
    ScalatraBase → ScalatraContext
  216. def session(key: Symbol)(implicit request: HttpServletRequest): Any

    Definition Classes
    SessionSupport
  217. def session(key: String)(implicit request: HttpServletRequest): Any

    Definition Classes
    SessionSupport
  218. implicit def session(implicit request: HttpServletRequest): HttpSession

    Definition Classes
    SessionSupport
  219. def sessionLocaleKey: String

    Session key to store current locale string.

    Session key to store current locale string.

    returns

    key

    Definition Classes
    LocaleFeature
  220. def sessionOption(implicit request: HttpServletRequest): Option[HttpSession]

    Definition Classes
    SessionSupport
  221. def set(keyAndValues: Seq[(String, Any)]): RequestScopeFeature

    Set attributes to request scope.

    Set attributes to request scope.

    Definition Classes
    RequestScopeFeature
  222. def set(keyAndValue: (String, Any)): RequestScopeFeature

    Set attribute to request scope.

    Set attribute to request scope.

    Definition Classes
    RequestScopeFeature
  223. def setAsParams(model: Any): Unit

    Set params which is generated from a model object using Java reflection APIs.

    Set params which is generated from a model object using Java reflection APIs.

    model

    model instance

    Definition Classes
    RequestScopeFeature
  224. def setCurrentLocale(locale: String): Unit

    Set current locale.

    Set current locale.

    locale

    locale string

    Attributes
    protected
    Definition Classes
    LocaleFeature
  225. def setI18n()(implicit locale: Locale = currentLocale.orNull[Locale]): RequestScopeFeature

    Set {{skinny.

    Set {{skinny.I18n}} object for the current request to request scope.

    locale

    current locale

    returns

    self

    Definition Classes
    RequestScopeFeature
  226. def setMultiparams[S](matchedRoute: Option[MatchedRoute], originalParams: org.scalatra.MultiParams)(implicit request: HttpServletRequest): Unit

    Attributes
    protected
    Definition Classes
    ScalatraBase
  227. def setParams(): Unit

    Set params to request scope.

    Set params to request scope.

    Definition Classes
    RequestScopeFeature
  228. def setParamsToRequestScope(): Unit

    Set params to request scope.

    Set params to request scope.

    Definition Classes
    RequestScopeFeature
  229. def shutdown(): Unit

    Definition Classes
    ScalateSupport → Initializable
  230. def skinnyEnv: Option[String]

    Env string value from "skinny.

    Env string value from "skinny.env" or "org.scalatra.environment".

    returns

    env string such as "production"

    Definition Classes
    EnvFeature
  231. lazy val skinnyErrorFilters: TrieMap[RenderingRequired, ErrorHandler]

    Registered error handlers.

    Registered error handlers.

    Attributes
    protected
    Definition Classes
    SkinnyFilterActivation
  232. implicit def skinnyValidatorSafe[S, T](f: (S) ⇒ T): ParamValueTypeConverter[S, T]

    Definition Classes
    ParametersGetAsImplicits
  233. implicit def skinnyValidatorSafeOption[S, T](f: (S) ⇒ Option[T]): ParamValueTypeConverter[S, T]

    Definition Classes
    ParametersGetAsImplicits
  234. implicit def skinnyValidatorSeqHead[T](implicit elementConverter: ParamValueTypeConverter[String, T], mf: Manifest[T]): ParamValueTypeConverter[Seq[String], T]

    Definition Classes
    ParametersGetAsImplicits
  235. implicit def skinnyValidatorSeqToSeq[T](implicit elementConverter: ParamValueTypeConverter[String, T], mf: Manifest[T]): ParamValueTypeConverter[Seq[String], Seq[T]]

    Definition Classes
    ParametersGetAsImplicits
  236. implicit val skinnyValidatorStringToBoolean: ParamValueTypeConverter[String, Boolean]

    Definition Classes
    ParametersGetAsImplicits
  237. implicit val skinnyValidatorStringToByte: ParamValueTypeConverter[String, Byte]

    Definition Classes
    ParametersGetAsImplicits
  238. def skinnyValidatorStringToDate(format: ⇒ String): ParamValueTypeConverter[String, Date]

    Definition Classes
    ParametersGetAsImplicits
  239. def skinnyValidatorStringToDateFormat(format: ⇒ DateFormat): ParamValueTypeConverter[String, Date]

    Definition Classes
    ParametersGetAsImplicits
  240. implicit val skinnyValidatorStringToDouble: ParamValueTypeConverter[String, Double]

    Definition Classes
    ParametersGetAsImplicits
  241. implicit val skinnyValidatorStringToFloat: ParamValueTypeConverter[String, Float]

    Definition Classes
    ParametersGetAsImplicits
  242. implicit val skinnyValidatorStringToInt: ParamValueTypeConverter[String, Int]

    Definition Classes
    ParametersGetAsImplicits
  243. implicit val skinnyValidatorStringToLong: ParamValueTypeConverter[String, Long]

    Definition Classes
    ParametersGetAsImplicits
  244. implicit val skinnyValidatorStringToSelf: ParamValueTypeConverter[String, String]

    Definition Classes
    ParametersGetAsImplicits
  245. def skinnyValidatorStringToSeq[T](elementConverter: ParamValueTypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): ParamValueTypeConverter[String, Seq[T]]

    Definition Classes
    ParametersGetAsImplicits
  246. implicit val skinnyValidatorStringToShort: ParamValueTypeConverter[String, Short]

    Definition Classes
    ParametersGetAsImplicits
  247. implicit def skinnyValidator_defaultStringToSeq[T](implicit elementConverter: ParamValueTypeConverter[String, T], mf: Manifest[T]): ParamValueTypeConverter[String, Seq[T]]

    Definition Classes
    ParametersGetAsImplicits
  248. def ssp(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Attributes
    protected
    Definition Classes
    ScalateSupport
  249. def status: Int

    Definition Classes
    ScalatraContext
  250. def status_=(code: Int): Unit

    Definition Classes
    ScalatraContext
  251. implicit def string2RouteMatcher(path: String): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  252. implicit val stringToBoolean: org.scalatra.util.conversion.TypeConverter[String, Boolean]

    Definition Classes
    DefaultImplicitConversions
  253. implicit val stringToByte: org.scalatra.util.conversion.TypeConverter[String, Byte]

    Definition Classes
    DefaultImplicitConversions
  254. def stringToDate(format: ⇒ String): org.scalatra.util.conversion.TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  255. def stringToDateFormat(format: ⇒ DateFormat): org.scalatra.util.conversion.TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  256. implicit val stringToDouble: org.scalatra.util.conversion.TypeConverter[String, Double]

    Definition Classes
    DefaultImplicitConversions
  257. implicit val stringToFloat: org.scalatra.util.conversion.TypeConverter[String, Float]

    Definition Classes
    DefaultImplicitConversions
  258. implicit val stringToInt: org.scalatra.util.conversion.TypeConverter[String, Int]

    Definition Classes
    DefaultImplicitConversions
  259. implicit val stringToLong: org.scalatra.util.conversion.TypeConverter[String, Long]

    Definition Classes
    DefaultImplicitConversions
  260. implicit val stringToSelf: org.scalatra.util.conversion.TypeConverter[String, String]

    Definition Classes
    DefaultImplicitConversions
  261. def stringToSeq[T](elementConverter: org.scalatra.util.conversion.TypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): org.scalatra.util.conversion.TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  262. implicit val stringToShort: org.scalatra.util.conversion.TypeConverter[String, Short]

    Definition Classes
    DefaultImplicitConversions
  263. def sweepUnusedFlashEntries(req: HttpServletRequest): Boolean

    Attributes
    protected
    Definition Classes
    FlashMapSupport
  264. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  265. def templateAttributes(key: String)(implicit request: HttpServletRequest): Any

    Attributes
    protected
    Definition Classes
    ScalateSupport
  266. def templateAttributes(implicit request: HttpServletRequest): Map[String, Any]

    Attributes
    protected
    Definition Classes
    ScalateSupport
  267. var templateEngine: TemplateEngine

    Attributes
    protected[org.scalatra]
    Definition Classes
    ScalateSupport
  268. def templateExists(path: String)(implicit format: Format = Format.HTML): Boolean

    Predicates the template path is available.

    Predicates the template path is available.

    path

    path name

    format

    format (HTML,JSON,XML...)

    returns

    true/false

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeatureTemplateEngineFeature
  269. def templatePaths(path: String)(implicit format: Format = Format.HTML): List[String]

    Returns the actual template path for the name.

    Returns the actual template path for the name.

    path

    path name

    format

    format (HTML,JSON,XML...)

    returns

    actual path

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeatureTemplateEngineFeature
  270. def toJSON(v: Any): JValue

    Converts a value to JSON value.

    Converts a value to JSON value.

    v

    value

    returns

    JValue

    Definition Classes
    JSONStringOps
  271. def toJSONString(v: Any, underscoreKeys: Boolean = true): String

    Converts a value to JSON string.

    Converts a value to JSON string.

    v

    value

    returns

    json string

    Definition Classes
    JSONStringOps
  272. def toPrettyJSONString(v: Any, underscoreKeys: Boolean = true): String

    Converts a value to prettified JSON string.

    Converts a value to prettified JSON string.

    v

    value

    returns

    json string

    Definition Classes
    JSONStringOps
  273. def toSnakeCase(s: String): String

    Converts string value to snake_case'd value.

    Converts string value to snake_case'd value.

    s

    string value

    returns

    snake_case'd value

    Attributes
    protected
    Definition Classes
    SkinnyControllerBase
  274. def toString(): String

    Definition Classes
    AnyRef → Any
  275. def toTemplatePath(path: String, format: Format, ext: String): String

    Attributes
    protected
    Definition Classes
    ScalateTemplateEngineFeature
  276. implicit def toTypedMultiParams(params: org.scalatra.MultiParams): TypedMultiParams

    Definition Classes
    ScalatraParamsImplicits
  277. implicit def toTypedParams(params: org.scalatra.Params): TypedParams

    Definition Classes
    ScalatraParamsImplicits
  278. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  279. def trace(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  280. def transformRequestBody(body: JValue): JValue

    Attributes
    protected
    Definition Classes
    JsonSupport
  281. def transformResponseBody(body: JValue): JValue

    Attributes
    protected
    Definition Classes
    JsonOutput
  282. def trap(codes: Range)(block: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  283. def trap(code: Int)(block: ⇒ Any): Unit

    Definition Classes
    CoreDsl
  284. def url(route: Route, params: Map[String, String], splats: Iterable[String])(implicit req: HttpServletRequest): String

    Definition Classes
    UrlGeneratorSupport
  285. def url(route: Route, splat: String, moreSplats: String*)(implicit req: HttpServletRequest): String

    Definition Classes
    UrlGeneratorSupport
  286. def url(route: Route, params: (String, String)*)(implicit req: HttpServletRequest): String

    Definition Classes
    UrlGeneratorSupport
  287. def url(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, absolutize: Boolean)(implicit request: HttpServletRequest, response: HttpServletResponse): String

    Definition Classes
    ScalatraBase
  288. def useSnakeCasedParamKeys: Boolean

    Defines use snake_case'd keys.

    Defines use snake_case'd keys.

    returns

    true if use snake_case keys (default: false)

    Attributes
    protected
    Definition Classes
    SnakeCasedParamKeysFeature
  289. def validation(params: controller.Params, validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates new validation form.

    Creates new validation form.

    params

    params

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    ValidationFeature
  290. def validationWithParams(validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates new validation form.

    Creates new validation form.

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    ValidationFeature
  291. def validationWithParamsAndPrefix(prefix: String, params: controller.Params, validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates new validation form.

    Creates new validation form.

    prefix

    key prefix for error message

    params

    params

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    ValidationFeature
  292. def validationWithPrefix(params: controller.Params, prefix: String, validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates new validation form.

    Creates new validation form.

    params

    params

    prefix

    key prefix for error message

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    ValidationFeature
  293. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  296. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  297. def warn(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  298. def withFormat[A](format: Format)(action: ⇒ A): A

    Provides code block with format.

    Provides code block with format. If absent, halt as status 406.

    A

    response type

    format

    format

    action

    action

    returns

    result

    Attributes
    protected
    Definition Classes
    SkinnyControllerBase
  299. def withRequest[A](request: HttpServletRequest)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  300. def withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  301. def withResponse[A](response: HttpServletResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    DynamicScope → RequestResponseScope
  302. def withRouteMultiParams[S](matchedRoute: Option[MatchedRoute])(thunk: ⇒ S): S

    Attributes
    protected
    Definition Classes
    ApiFormats → ScalatraBase
  303. def writeJson(json: JValue, writer: Writer): Unit

    Attributes
    protected
    Definition Classes
    JacksonJsonOutput → JsonOutput
  304. def writeJsonAsXml(json: JValue, writer: Writer): Unit

    Attributes
    protected
    Definition Classes
    JsonOutput
  305. def xmlItemName: String

    Attributes
    protected
    Definition Classes
    TemplateEngineFeature
  306. def xmlRootName: String

    Attributes
    protected
    Definition Classes
    TemplateEngineFeature
  307. lazy val xmlRootNode: Elem

    Attributes
    protected
    Definition Classes
    JsonOutput

Deprecated Value Members

  1. def _request: DynamicVariable[HttpServletRequest]

    Attributes
    protected
    Definition Classes
    DynamicScope
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Do not invoke directly. Use withRequest to change the binding, or request to get the value

  2. def _response: DynamicVariable[HttpServletResponse]

    Attributes
    protected
    Definition Classes
    DynamicScope
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Do not invoke directly. Use withResponse to change the binding, or response to get the value

  3. def applicationContext: javax.servlet.ServletContext

    Definition Classes
    ScalatraBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use servletContext instead

  4. def prepareCSRFToken(): Any

    Attributes
    protected
    Definition Classes
    CsrfTokenSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use prepareCsrfToken()

  5. def renderTemplate(path: String, attributes: (String, Any)*)(implicit request: HttpServletRequest, response: HttpServletResponse): Unit

    Definition Classes
    ScalateSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) not idiomatic Scalate; consider layoutTemplate instead

  6. def status(code: Int): Unit

    Definition Classes
    ScalatraContext
    Annotations
    @deprecated
    Deprecated

    (Since version 2.1.0) Use status_=(Int) instead

Inherited from SkinnyFilterActivation

Inherited from ParamsPermitImplicits

Inherited from ParametersGetAsImplicits

Inherited from RoutesAsImplicits

Inherited from CSRFProtectionFeature

Inherited from CsrfTokenSupport

Inherited from ScalateUrlGeneratorSupport

Inherited from ScalateSupport

Inherited from TemplateEngineFeature

Inherited from JSONFeature

Inherited from JSONStringOps

Inherited from JacksonJsonSupport

Inherited from JValueResult

Inherited from JacksonJsonOutput

Inherited from JsonMethods

Inherited from JsonSupport[JValue]

Inherited from JsonOutput[JValue]

Inherited from JsonMethods[JValue]

Inherited from ApiFormats

Inherited from ValidationFeature

Inherited from FlashFeature

Inherited from FlashMapSupport

Inherited from BeforeAfterActionFeature

Inherited from ActionDefinitionFeature

Inherited from RequestScopeFeature

Inherited from Logging

Inherited from LocaleFeature

Inherited from ExplicitRedirectFeature

Inherited from UrlGeneratorSupport

Inherited from RichRouteFeature

Inherited from EnvFeature

Inherited from SkinnyScalatraBase

Inherited from ScalatraFilter

Inherited from ServletBase

Inherited from ScalatraBase

Inherited from CookieSupport

Inherited from DefaultImplicitConversions

Inherited from LowPriorityImplicitConversions

Inherited from LowestPriorityImplicitConversions

Inherited from TypeConverterSupport

Inherited from ScalatraParamsImplicits

Inherited from Initializable

Inherited from DynamicScope

Inherited from RequestResponseScope

Inherited from CoreDsl

Inherited from Control

Inherited from Handler

Inherited from ScalatraContext

Inherited from CookieContext

Inherited from SessionSupport

Inherited from ServletApiImplicits

Inherited from Filter

Inherited from AnyRef

Inherited from Any

Ungrouped