skinny.controller

SkinnyResource

trait SkinnyResource extends SkinnyController

Skinny resource is a DRY module to implement ROA(Resource-oriented architecture) apps.

SkinnyResource is surely inspired by Rails ActiveSupport.

Linear Supertypes
SkinnyController, SkinnyControllerBase, ParamsPermitImplicits, ParamsGetAsImplicits, RoutesAsImplicits, CSRFProtectionFeature, CsrfTokenSupport, ScalateTemplateEngineFeature, ScalateSupport, TemplateEngineFeature, Logging, JacksonJsonSupport, JValueResult, JacksonJsonOutput, JsonMethods, JsonSupport[JValue], JsonOutput[JValue], JsonMethods[JValue], ApiFormats, ValidationFeature, FlashFeature, FlashMapSupport, BeforeAfterActionFeature, ActionDefinitionFeature, RequestScopeFeature, SessionLocaleFeature, RichRouteFeature, EnvFeature, ScalatraFilter, ServletBase, ScalatraBase, CookieSupport, DefaultImplicitConversions, LowPriorityImplicitConversions, LowestPriorityImplicitConversions, TypeConverterSupport, ScalatraParamsImplicits, Initializable, DynamicScope, RequestResponseScope, CoreDsl, Control, Handler, ScalatraContext, CookieContext, SessionSupport, ServletApiImplicits, Filter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SkinnyResource
  2. SkinnyController
  3. SkinnyControllerBase
  4. ParamsPermitImplicits
  5. ParamsGetAsImplicits
  6. RoutesAsImplicits
  7. CSRFProtectionFeature
  8. CsrfTokenSupport
  9. ScalateTemplateEngineFeature
  10. ScalateSupport
  11. TemplateEngineFeature
  12. Logging
  13. JacksonJsonSupport
  14. JValueResult
  15. JacksonJsonOutput
  16. JsonMethods
  17. JsonSupport
  18. JsonOutput
  19. JsonMethods
  20. ApiFormats
  21. ValidationFeature
  22. FlashFeature
  23. FlashMapSupport
  24. BeforeAfterActionFeature
  25. ActionDefinitionFeature
  26. RequestScopeFeature
  27. SessionLocaleFeature
  28. RichRouteFeature
  29. EnvFeature
  30. ScalatraFilter
  31. ServletBase
  32. ScalatraBase
  33. CookieSupport
  34. DefaultImplicitConversions
  35. LowPriorityImplicitConversions
  36. LowestPriorityImplicitConversions
  37. TypeConverterSupport
  38. ScalatraParamsImplicits
  39. Initializable
  40. DynamicScope
  41. RequestResponseScope
  42. CoreDsl
  43. Control
  44. Handler
  45. ScalatraContext
  46. CookieContext
  47. SessionSupport
  48. ServletApiImplicits
  49. Filter
  50. AnyRef
  51. 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. trait ScalatraTemplateEngine extends AnyRef

    Definition Classes
    ScalateSupport
  4. sealed class TypedMultiParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits
  5. sealed class TypedParams extends AnyRef

    Definition Classes
    ScalatraParamsImplicits

Abstract Value Members

  1. abstract def createForm: MapValidator

    Input form for creation

    Input form for creation

    Attributes
    protected
  2. abstract def createFormStrongParameters: Seq[(String, ParamType)]

    Strong parameter definitions for creation form

    Strong parameter definitions for creation form

    Attributes
    protected
  3. abstract def model: SkinnyModel[_]

    SkinnyModel for this resource.

    SkinnyModel for this resource.

    Attributes
    protected
  4. abstract def resourceName: String

    Resource name in the singular.

    Resource name in the singular. This name will be used for path and validator's prefix.

    Attributes
    protected
  5. abstract def resourcesName: String

    Resource name in the plural.

    Resource name in the plural. This name will be used for path and directory name to locale template files.

    Attributes
    protected
  6. abstract def updateForm: MapValidator

    Input form for modification

    Input form for modification

    Attributes
    protected
  7. abstract def updateFormStrongParameters: Seq[(String, ParamType)]

    Strong parameter definitions for mofidication form

    Strong parameter definitions for mofidication form

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def acceptHeader(implicit request: HttpServletRequest): List[String]

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

    Attributes
    protected
    Definition Classes
    ApiFormats
  8. 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
  9. def addActionDefinition(actionDef: ActionDefinition): Unit

    Adds action definition

    Adds action definition

    actionDef

    action definition

    Definition Classes
    ActionDefinitionFeature
  10. def addMimeMapping(mime: String, extension: String): Unit

    Attributes
    protected
    Definition Classes
    ApiFormats
  11. 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
  12. 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
  13. def addSessionId(uri: String)(implicit response: HttpServletResponse): String

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  16. 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
  17. 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
  18. implicit val anyToBoolean: TypeConverter[Any, Boolean]

    Definition Classes
    LowPriorityImplicitConversions
  19. implicit val anyToByte: TypeConverter[Any, Byte]

    Definition Classes
    LowPriorityImplicitConversions
  20. implicit val anyToDouble: TypeConverter[Any, Double]

    Definition Classes
    LowPriorityImplicitConversions
  21. implicit val anyToFloat: TypeConverter[Any, Float]

    Definition Classes
    LowPriorityImplicitConversions
  22. implicit val anyToInt: TypeConverter[Any, Int]

    Definition Classes
    LowPriorityImplicitConversions
  23. implicit val anyToLong: TypeConverter[Any, Long]

    Definition Classes
    LowPriorityImplicitConversions
  24. implicit val anyToShort: TypeConverter[Any, Short]

    Definition Classes
    LowPriorityImplicitConversions
  25. implicit val anyToString: TypeConverter[Any, String]

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

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

    Definition Classes
    JsonMethods
  28. def basePath: String

    Base path.

    Base path.

    Attributes
    protected
  29. def before(transformers: (Route) ⇒ Route*)(fun: ⇒ Any): Unit

    Definition Classes
    ScalatraBase → CoreDsl
  30. 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
  31. 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
  32. implicit def booleanBlock2RouteMatcher(block: ⇒ Boolean): RouteMatcher

    Attributes
    protected
    Definition Classes
    ScalatraBase
  33. def cacheRequestBodyAsString: Boolean

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

    Default charset.

    Default charset.

    Definition Classes
    TemplateEngineFeature
  35. def clone(): AnyRef

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

    Definition Classes
    JsonMethods → JsonMethods
  37. var config: ConfigT

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

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

    Definition Classes
    ScalatraContext
  40. def contentTypeInferrer: ContentTypeInferrer

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

    Definition Classes
    ScalatraContext
  42. def contextPath: String

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

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

    Definition Classes
    RoutesAsImplicits
  45. implicit def cookieOptions: CookieOptions

    Definition Classes
    CookieContext
  46. def cookies: SweetCookies

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

    Creates skinny.I18n instance for current locale.

    Creates skinny.I18n instance for current locale.

    locale

    current locale

    returns

    i18n provider

    Attributes
    protected
  48. def createRenderContext(req: HttpServletRequest, resp: HttpServletResponse, out: PrintWriter): RenderContext

    Attributes
    protected
    Definition Classes
    ScalateSupport
  49. def createResource()(implicit format: Format = Format.HTML): Any

    Creates new resource.

    Creates new resource.

    POST /{resources}

    format

    format

    returns

    created response if success

  50. 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 → ScalateSupport
  51. def csrfKey: String

    Overrides Scalatra's default key name.

    Overrides Scalatra's default key name.

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

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

    Returns action name for this request.

    Returns action name for this request.

    returns

    action name

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

    Returns current locale for this request.

    Returns current locale for this request.

    returns

    current locale

    Definition Classes
    SessionLocaleFeature
  55. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

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

    Attributes
    protected
    Definition Classes
    Logging
  57. def debugLoggingParameters(form: MapValidator, id: Option[Long] = None): Unit

    Outputs debug logging for passed parameters.

    Outputs debug logging for passed parameters.

    form

    input form

    id

    id if exists

    Attributes
    protected
  58. def debugLoggingPermittedParameters(parameters: PermittedStrongParameters, id: Option[Long] = None): Unit

    Outputs debug logging for permitted parameters.

    Outputs debug logging for permitted parameters.

    parameters

    permitted strong parameters

    id

    id if exists

    Attributes
    protected
  59. def defaultAcceptedFormats: List[Symbol]

    Definition Classes
    ApiFormats
  60. val defaultCharacterEncoding: String

    Attributes
    protected
    Definition Classes
    ScalatraBase
  61. def defaultFormat: Symbol

    Definition Classes
    ApiFormats
  62. def defaultIndexName: String

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

    Attributes
    protected
    Definition Classes
    ScalateSupport
  64. implicit def defaultStringToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): 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 destroyResource(id: Long)(implicit format: Format = Format.HTML): Any

    Destroys the specified resource.

    Destroys the specified resource.

    DELETE /{resources}/{id}

    id

    id

    format

    format

    returns

    result

  70. def doCreateAndReturnId(parameters: PermittedStrongParameters): Long

    Executes resource creation.

    Executes resource creation.

    parameters

    permitted parameters

    returns

    generated resource id

    Attributes
    protected
  71. def doDestroy(id: Long): Int

    Executes deletion of the specified single resource.

    Executes deletion of the specified single resource.

    id

    id

    returns

    count

    Attributes
    protected
  72. def doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain): Unit

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

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

    Attributes
    protected
    Definition Classes
    ScalatraFilter → ScalatraBase
  75. def doUpdate(id: Long, parameters: PermittedStrongParameters): Int

    Executes modification for the specified resource.

    Executes modification for the specified resource.

    id

    id

    parameters

    permitted parameters

    returns

    count

    Attributes
    protected
  76. def editResource(id: Long)(implicit format: Format = Format.HTML): Any

    Shows input form for modification.

    Shows input form for modification.

    GET /{resources}/{id}/edit

    id

    id

    format

    format

    returns

    input form

  77. implicit def enrichRequest(request: HttpServletRequest): RichRequest

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

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

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

    Definition Classes
    ServletApiImplicits
  81. def environment: String

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

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

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

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  87. var errorHandler: ErrorHandler

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  89. def filterChain: FilterChain

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    ScalatraBase
  102. def get(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

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

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

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

    Definition Classes
    Control
  106. 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
  107. def handle(req: HttpServletRequest, res: HttpServletResponse): Unit

    Definition Classes
    ScalateSupport → ServletBase → ScalatraBase → Handler
  108. 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
  109. def handleForgeryIfDetected(): Unit

    Handles when CSRF is detected.

    Handles when CSRF is detected.

    Definition Classes
    CSRFProtectionFeature
  110. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  111. def inferFromFormats: ContentTypeInferrer

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  119. def isDebugEnabled: Boolean

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

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

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

    returns

    true/false

    Definition Classes
    EnvFeature
  121. def isDevelopmentMode: Boolean

    Definition Classes
    ScalatraBase
  122. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  123. def isForged: Boolean

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  125. def isInfoEnabled: Boolean

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

    Definition Classes
    Any
  127. def isProduction(): Boolean

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

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

    returns

    true/false

    Definition Classes
    EnvFeature
  128. def isScalateErrorPageEnabled: Boolean

    Attributes
    protected
    Definition Classes
    ScalateSupport
  129. def isStaging(): Boolean

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

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

    returns

    true/false

    Definition Classes
    EnvFeature
  130. def isTest(): Boolean

    Predicates current env is "test".

    Predicates current env is "test".

    returns

    true/false

    Definition Classes
    EnvFeature
  131. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  132. def isWarnEnabled: Boolean

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

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

    JSON format support implicitly.

    JSON format support implicitly.

    Attributes
    protected
    Definition Classes
    TemplateEngineFeature → JValueResult
  135. lazy val jsonVulnerabilityGuard: Boolean

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

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

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

    Attributes
    protected
    Definition Classes
    ScalateSupport
  139. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  140. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  141. implicit def lowestPriorityAny2T[T](implicit arg0: Manifest[T]): TypeConverter[Any, T]

    Definition Classes
    LowestPriorityImplicitConversions
  142. def mapper: ObjectMapper

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

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

    Definition Classes
    ApiFormats
  145. def multiParams(implicit request: HttpServletRequest): MultiParams

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

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

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

    Definition Classes
    AnyRef
  149. def needsHttps: Boolean

    Attributes
    protected
    Definition Classes
    ScalatraBase
  150. def newResource()(implicit format: Format = Format.HTML): Any

    Shows input form for creation.

    Shows input form for creation.

    GET /{resources}/new

    format

    format

    returns

    input form

  151. def notFound(fun: ⇒ Any): Unit

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

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

    Definition Classes
    AnyRef
  154. def options(transformers: (Route) ⇒ Route*)(action: ⇒ Any): Route

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

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

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

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

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

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

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

    Definition Classes
    JsonSupport
  162. def pass(): Nothing

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

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

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

    Definition Classes
    ScalatraBase → CoreDsl
  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): Unit

    Definition Classes
    ScalatraBase
  175. implicit def regex2RouteMatcher(regex: Regex): RouteMatcher

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  179. 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
  180. def render(value: JValue): JValue

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  182. def renderPipeline: RenderPipeline

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  185. 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
  186. 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
  187. implicit def request: HttpServletRequest

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

    Definition Classes
    ScalatraFilter → ScalatraBase
  189. 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
  190. 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
  191. 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
  192. def requestScope(): Map[String, Any]

    Returns whole request scope attributes.

    Returns whole request scope attributes.

    returns

    whole attributes

    Definition Classes
    RequestScopeFeature
  193. 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
  194. implicit def response: HttpServletResponse

    Definition Classes
    DynamicScope → RequestResponseScope
  195. def responseFormat(implicit request: HttpServletRequest, response: HttpServletResponse): String

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  200. implicit def safe[S, T](f: (S) ⇒ T): TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  201. implicit def safeOption[S, T](f: (S) ⇒ Option[T]): TypeConverter[S, T]

    Definition Classes
    TypeConverterSupport
  202. lazy val scalateExtension: String

    Scalate extension name.

    Scalate extension name. If you'd like to use another one, override this attribute.

    Definition Classes
    ScalateTemplateEngineFeature
  203. implicit def scalatraContext: ScalatraContext

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

    Attributes
    protected
    Definition Classes
    ScalateSupport
  205. implicit def seqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]

    Definition Classes
    DefaultImplicitConversions
  206. implicit def seqToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], Seq[T]]

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

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

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

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

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

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

    Definition Classes
    SessionSupport
  213. def sessionLocaleKey: String

    Session key to store current locale string.

    Session key to store current locale string.

    returns

    key

    Definition Classes
    SessionLocaleFeature
  214. def sessionOption(implicit request: HttpServletRequest): Option[HttpSession]

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

    Set attributes to request scope.

    Set attributes to request scope.

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

    Set attribute to request scope.

    Set attribute to request scope.

    Definition Classes
    RequestScopeFeature
  217. 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
  218. def setCreateCompletionFlash(): Unit

    Set notice flash message for successful completion of creation.

    Set notice flash message for successful completion of creation.

    Attributes
    protected
  219. def setCurrentLocale(locale: String): Unit

    Set current locale.

    Set current locale.

    locale

    locale string

    Definition Classes
    SessionLocaleFeature
  220. def setDestroyCompletionFlash(): FlashMap

    Set notice flash message for successful completion of deletion.

    Set notice flash message for successful completion of deletion.

    Attributes
    protected
  221. 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
  222. def setMultiparams[S](matchedRoute: Option[MatchedRoute], originalParams: MultiParams)(implicit request: HttpServletRequest): Unit

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

    Set params to request scope.

    Set params to request scope.

    Definition Classes
    RequestScopeFeature
  224. def setParamsToRequestScope(): Unit

    Set params to request scope.

    Set params to request scope.

    Definition Classes
    RequestScopeFeature
  225. def setUpdateCompletionFlash(): FlashMap

    Set notice flash message for successful completion of modification.

    Set notice flash message for successful completion of modification.

    Attributes
    protected
  226. def showResource(id: Long)(implicit format: Format = Format.HTML): Any

    Show single resource.

    Show single resource.

    GET /{resources}/{id} GET /{resources}/{id}.xml GET /{resources}/{id}.json

    id

    id

    format

    format

    returns

    single resource

  227. def showResources()(implicit format: Format = Format.HTML): Any

    Shows a list of resource.

    Shows a list of resource.

    GET /{resources}/ GET /{resources} GET /{resources}.xml GET /{resources}.json

    format

    format

    returns

    list of resource

  228. def shutdown(): Unit

    Definition Classes
    ScalateSupport → Initializable
  229. 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
  230. implicit def skinnyValidatorSafe[S, T](f: (S) ⇒ T): TypeConverter[S, T]

    Definition Classes
    ParamsGetAsImplicits
  231. implicit def skinnyValidatorSafeOption[S, T](f: (S) ⇒ Option[T]): TypeConverter[S, T]

    Definition Classes
    ParamsGetAsImplicits
  232. implicit def skinnyValidatorSeqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]

    Definition Classes
    ParamsGetAsImplicits
  233. implicit def skinnyValidatorSeqToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], Seq[T]]

    Definition Classes
    ParamsGetAsImplicits
  234. implicit val skinnyValidatorStringToBoolean: TypeConverter[String, Boolean]

    Definition Classes
    ParamsGetAsImplicits
  235. implicit val skinnyValidatorStringToByte: TypeConverter[String, Byte]

    Definition Classes
    ParamsGetAsImplicits
  236. def skinnyValidatorStringToDate(format: ⇒ String): TypeConverter[String, Date]

    Definition Classes
    ParamsGetAsImplicits
  237. def skinnyValidatorStringToDateFormat(format: ⇒ DateFormat): TypeConverter[String, Date]

    Definition Classes
    ParamsGetAsImplicits
  238. implicit val skinnyValidatorStringToDouble: TypeConverter[String, Double]

    Definition Classes
    ParamsGetAsImplicits
  239. implicit val skinnyValidatorStringToFloat: TypeConverter[String, Float]

    Definition Classes
    ParamsGetAsImplicits
  240. implicit val skinnyValidatorStringToInt: TypeConverter[String, Int]

    Definition Classes
    ParamsGetAsImplicits
  241. implicit val skinnyValidatorStringToLong: TypeConverter[String, Long]

    Definition Classes
    ParamsGetAsImplicits
  242. implicit val skinnyValidatorStringToSelf: TypeConverter[String, String]

    Definition Classes
    ParamsGetAsImplicits
  243. def skinnyValidatorStringToSeq[T](elementConverter: TypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): TypeConverter[String, Seq[T]]

    Definition Classes
    ParamsGetAsImplicits
  244. implicit val skinnyValidatorStringToShort: TypeConverter[String, Short]

    Definition Classes
    ParamsGetAsImplicits
  245. implicit def skinnyValidator_defaultStringToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[String, Seq[T]]

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

    Attributes
    protected
    Definition Classes
    ScalateSupport
  247. def status: Int

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

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

    Attributes
    protected
    Definition Classes
    ScalatraBase
  250. implicit val stringToBoolean: TypeConverter[String, Boolean]

    Definition Classes
    DefaultImplicitConversions
  251. implicit val stringToByte: TypeConverter[String, Byte]

    Definition Classes
    DefaultImplicitConversions
  252. def stringToDate(format: ⇒ String): TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  253. def stringToDateFormat(format: ⇒ DateFormat): TypeConverter[String, Date]

    Definition Classes
    DefaultImplicitConversions
  254. implicit val stringToDouble: TypeConverter[String, Double]

    Definition Classes
    DefaultImplicitConversions
  255. implicit val stringToFloat: TypeConverter[String, Float]

    Definition Classes
    DefaultImplicitConversions
  256. implicit val stringToInt: TypeConverter[String, Int]

    Definition Classes
    DefaultImplicitConversions
  257. implicit val stringToLong: TypeConverter[String, Long]

    Definition Classes
    DefaultImplicitConversions
  258. implicit val stringToSelf: TypeConverter[String, String]

    Definition Classes
    DefaultImplicitConversions
  259. def stringToSeq[T](elementConverter: TypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): TypeConverter[String, Seq[T]]

    Definition Classes
    DefaultImplicitConversions
  260. implicit val stringToShort: TypeConverter[String, Short]

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

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

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

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

    Attributes
    protected
    Definition Classes
    ScalateSupport
  265. var templateEngine: TemplateEngine

    Attributes
    protected[org.scalatra]
    Definition Classes
    ScalateSupport
  266. 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
  267. def templatePath(path: String)(implicit format: Format = Format.HTML): 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
  268. def toString(): String

    Definition Classes
    AnyRef → Any
  269. implicit def toTypedMultiParams(params: MultiParams): TypedMultiParams

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

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

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

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

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

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

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

    Definition Classes
    CoreDsl
  277. def updateResource(id: Long)(implicit format: Format = Format.HTML): Any

    Updates the specified single resource.

    Updates the specified single resource.

    PUT /{resources}/{id}

    id

    id

    format

    format

    returns

    result

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

    Definition Classes
    ScalatraBase
  279. def useRelativePath: Boolean

    Use relative path if true.

    Use relative path if true. This is set as false by default.

    If you set this as true, routing will become simpler but /${resources}.xml or /${resources}.json don't work.

    Attributes
    protected
  280. def validation(validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates validator with prefix(resourceName).

    Creates validator with prefix(resourceName).

    validations

    validations validations

    locale

    current locale

    returns

    validator

    Definition Classes
    SkinnyResourceValidationFeature
  281. def validationWithPrefix(prefix: String, validations: NewValidation*)(implicit locale: Locale = currentLocale.orNull[Locale]): MapValidator

    Creates new validation form.

    Creates new validation form.

    prefix

    key prefix for error message

    validations

    validations

    locale

    current locale

    returns

    validator

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  287. 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
  288. def withRequest[A](request: HttpServletRequest)(f: ⇒ A): A

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    JsonOutput
  294. 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 SkinnyController

Inherited from SkinnyControllerBase

Inherited from ParamsPermitImplicits

Inherited from ParamsGetAsImplicits

Inherited from RoutesAsImplicits

Inherited from CSRFProtectionFeature

Inherited from CsrfTokenSupport

Inherited from ScalateSupport

Inherited from TemplateEngineFeature

Inherited from Logging

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 SessionLocaleFeature

Inherited from RichRouteFeature

Inherited from EnvFeature

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