Trait

skinny.controller.feature

SkinnyControllerCommonBase

Related Doc: package feature

Permalink

trait SkinnyControllerCommonBase extends SkinnyEngineBase with ApiFormats with EnvFeature with QueryParamsFeature with FormParamsFeature with UrlGeneratorSupport with ExplicitRedirectFeature with ActionDefinitionFeature with RequestScopeFeature with ChunkedResponseFeature with BeforeAfterActionFeature with LocaleFeature with JSONFeature with ValidationFeature with TimeLoggingFeature with ThreadLocalRequestFeature with SnakeCasedParamKeysFeature with XContentTypeOptionsNosniffHeaderFeature with RoutesAsImplicits with ParametersGetAsImplicits with ParamsPermitImplicits with SkinnyFilterActivation with logging.LoggerProvider

Linear Supertypes
SkinnyFilterActivation, ParamsPermitImplicits, ParametersGetAsImplicits, RoutesAsImplicits, XContentTypeOptionsNosniffHeaderFeature, ThreadLocalRequestFeature, TimeLoggingFeature, SensitiveParametersFeature, TimeLogging, ValidationFeature, JSONFeature, JSONStringOpsConfig, JSONStringOps, BeforeAfterActionFeature, ChunkedResponseFeature, RequestScopeFeature, LocaleFeature, SnakeCasedParamKeysFeature, BeforeAfterDsl, ActionDefinitionFeature, ExplicitRedirectFeature, UrlGeneratorSupport, FormParamsFeature, QueryParamsFeature, EnvFeature, ApiFormats, SkinnyEngineBase, SessionImplicits, DefaultImplicits, LowPriorityImplicits, LowestPriorityImplicits, engine.implicits.TypeConverterSupport, EngineParamsImplicits, CookiesImplicits, RouteMatcherImplicits, HaltPassControl, UrlGenerator, ResponseStatusAccessor, ResponseContentTypeAccessor, RequestFormatAccessor, ParamsAccessor, EnvironmentAccessor, ErrorHandlerAccessor, AsyncSupported, CoreHandler, Handler, logging.LoggerProvider, ServletContextAccessor, RicherStringImplicits, ServletApiImplicits, RouteRegistryAccessor, SkinnyEngineContextInitializer, Initializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SkinnyControllerCommonBase
  2. SkinnyFilterActivation
  3. ParamsPermitImplicits
  4. ParametersGetAsImplicits
  5. RoutesAsImplicits
  6. XContentTypeOptionsNosniffHeaderFeature
  7. ThreadLocalRequestFeature
  8. TimeLoggingFeature
  9. SensitiveParametersFeature
  10. TimeLogging
  11. ValidationFeature
  12. JSONFeature
  13. JSONStringOpsConfig
  14. JSONStringOps
  15. BeforeAfterActionFeature
  16. ChunkedResponseFeature
  17. RequestScopeFeature
  18. LocaleFeature
  19. SnakeCasedParamKeysFeature
  20. BeforeAfterDsl
  21. ActionDefinitionFeature
  22. ExplicitRedirectFeature
  23. UrlGeneratorSupport
  24. FormParamsFeature
  25. QueryParamsFeature
  26. EnvFeature
  27. ApiFormats
  28. SkinnyEngineBase
  29. SessionImplicits
  30. DefaultImplicits
  31. LowPriorityImplicits
  32. LowestPriorityImplicits
  33. TypeConverterSupport
  34. EngineParamsImplicits
  35. CookiesImplicits
  36. RouteMatcherImplicits
  37. HaltPassControl
  38. UrlGenerator
  39. ResponseStatusAccessor
  40. ResponseContentTypeAccessor
  41. RequestFormatAccessor
  42. ParamsAccessor
  43. EnvironmentAccessor
  44. ErrorHandlerAccessor
  45. AsyncSupported
  46. CoreHandler
  47. Handler
  48. LoggerProvider
  49. ServletContextAccessor
  50. RicherStringImplicits
  51. ServletApiImplicits
  52. RouteRegistryAccessor
  53. SkinnyEngineContextInitializer
  54. Initializable
  55. AnyRef
  56. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait Config extends AnyRef

    Permalink
    Definition Classes
    Initializable
  2. abstract type ConfigT <: AnyRef { ... /* 3 definitions in type refinement */ }

    Permalink
    Definition Classes
    ServletContextAccessor → Initializable
  3. sealed trait RenderingRequired extends AnyRef

    Permalink
    Definition Classes
    SkinnyFilterActivation
  4. sealed class TypedMultiParams extends AnyRef

    Permalink
    Definition Classes
    EngineParamsImplicits
  5. sealed class TypedParams extends AnyRef

    Permalink
    Definition Classes
    EngineParamsImplicits

Abstract Value Members

  1. abstract val doNotFound: Action

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  2. abstract def requestPath(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    SkinnyEngineBase
  3. abstract def routeBasePath(implicit ctx: SkinnyEngineContext): String

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object WithRendering extends controller.feature.SkinnyControllerCommonBase.RenderingRequired with Product with Serializable

    Permalink
    Definition Classes
    SkinnyFilterActivation
  5. object WithoutRendering extends controller.feature.SkinnyControllerCommonBase.RenderingRequired with Product with Serializable

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

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

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

    Permalink

    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

    Permalink

    Adds action definition

    Adds action definition

    actionDef

    action definition

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

    Permalink

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    ApiFormats
  12. def addParam(name: String, value: Any)(implicit ctx: SkinnyEngineContext = context): Unit

    Permalink

    Add param to params in the request scope.

    Add param to params in the request scope.

    name

    name

    value

    value

    Definition Classes
    RequestScopeFeature
  13. def after(transformers: RouteTransformer*)(fun: ⇒ Any): Unit

    Permalink
    Definition Classes
    BeforeAfterDsl
  14. def afterAction(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    Permalink

    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
  15. def afterFilter(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    Permalink

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

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

    Definition Classes
    BeforeAfterActionFeature
  16. implicit val anyToBoolean: engine.implicits.TypeConverter[Any, Boolean]

    Permalink
    Definition Classes
    LowPriorityImplicits
  17. implicit val anyToByte: engine.implicits.TypeConverter[Any, Byte]

    Permalink
    Definition Classes
    LowPriorityImplicits
  18. implicit val anyToDouble: engine.implicits.TypeConverter[Any, Double]

    Permalink
    Definition Classes
    LowPriorityImplicits
  19. implicit val anyToFloat: engine.implicits.TypeConverter[Any, Float]

    Permalink
    Definition Classes
    LowPriorityImplicits
  20. implicit val anyToInt: engine.implicits.TypeConverter[Any, Int]

    Permalink
    Definition Classes
    LowPriorityImplicits
  21. implicit val anyToLong: engine.implicits.TypeConverter[Any, Long]

    Permalink
    Definition Classes
    LowPriorityImplicits
  22. implicit val anyToShort: engine.implicits.TypeConverter[Any, Short]

    Permalink
    Definition Classes
    LowPriorityImplicits
  23. implicit val anyToString: engine.implicits.TypeConverter[Any, String]

    Permalink
    Definition Classes
    LowPriorityImplicits
  24. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    JSONStringOps
  26. def before(transformers: RouteTransformer*)(fun: ⇒ Any): Unit

    Permalink
    Definition Classes
    BeforeAfterDsl
  27. def beforeAction(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    Permalink

    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
  28. def beforeFilter(only: Seq[Symbol] = Nil, except: Seq[Symbol] = Nil)(action: ⇒ Any): Unit

    Permalink

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    RouteMatcherImplicits
  30. lazy val charset: Option[String]

    Permalink
    Definition Classes
    SkinnyEngineBase
  31. def clone(): AnyRef

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

    Permalink
    Definition Classes
    JSONStringOps
  33. var config: ConfigT

    Permalink
    Definition Classes
    ServletContextAccessor
  34. implicit def configWrapper(config: ConfigT): Config { object initParameters }

    Permalink
    Attributes
    protected
    Definition Classes
    ServletContextAccessor → Initializable
  35. def contentType(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    ResponseContentTypeAccessor
  36. def contentTypeInferrer: ContentTypeInferrer

    Permalink
    Attributes
    protected
    Definition Classes
    ApiFormats → SkinnyEngineBase
  37. def contentType_=(contentType: String)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Definition Classes
    ResponseContentTypeAccessor
  38. def context: SkinnyEngineContext

    Permalink
    Definition Classes
    SkinnyEngineContextInitializer
  39. def contextPath: String

    Permalink
    Definition Classes
    ServletContextAccessor
  40. implicit def convertParamsToStrongParameters(params: engine.Params): StrongParameters

    Permalink
    Definition Classes
    ParamsPermitImplicits
  41. implicit def convertRouteToRichRoute(route: Route)(implicit controller: SkinnyControllerCommonBase): RichRoute

    Permalink
    Definition Classes
    RoutesAsImplicits
  42. implicit def cookieOptions(implicit ctx: SkinnyEngineContext): CookieOptions

    Permalink
    Definition Classes
    CookiesImplicits
  43. def cookies(implicit ctx: SkinnyEngineContext): SweetCookies

    Permalink
    Definition Classes
    CookiesImplicits
  44. def createI18n()(implicit locale: Locale = ...): I18n

    Permalink

    Creates skinny.I18n instance for current locale.

    Creates skinny.I18n instance for current locale.

    locale

    current locale

    returns

    i18n provider

    Attributes
    protected
  45. def currentActionName(implicit cxt: SkinnyEngineContext = context): Option[Symbol]

    Permalink

    Returns action name for this request.

    Returns action name for this request.

    returns

    action name

    Definition Classes
    ActionDefinitionFeature
  46. def currentErrorHandler: ErrorHandler

    Permalink
    Attributes
    protected
    Definition Classes
    ErrorHandlerAccessor
  47. def currentLocale(implicit ctx: SkinnyEngineContext): Option[Locale]

    Permalink

    Returns current locale for this request.

    Returns current locale for this request.

    returns

    current locale

    Attributes
    protected
    Definition Classes
    LocaleFeature
  48. def defaultAcceptedFormats: List[Symbol]

    Permalink
    Definition Classes
    ApiFormats
  49. val defaultCharacterEncoding: String

    Permalink
    Attributes
    protected
    Definition Classes
    CoreHandler
  50. def defaultFormat: Symbol

    Permalink
    Definition Classes
    ApiFormats
  51. def defaultLocale: Option[Locale]

    Permalink

    Returns default locale.

    Returns default locale.

    Attributes
    protected
    Definition Classes
    LocaleFeature
  52. def defaultObjectMapper: ObjectMapper

    Permalink
    Definition Classes
    JSONStringOps
  53. implicit def defaultStringToSeq[T](implicit elementConverter: engine.implicits.TypeConverter[String, T], mf: Manifest[T]): engine.implicits.TypeConverter[String, Seq[T]]

    Permalink
    Definition Classes
    DefaultImplicits
  54. def detectTooManyErrorFilterRegistrationAsAnErrorAtSkinnyEngineBase: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    ErrorHandlerAccessor
  55. implicit def enrichRequest(request: HttpServletRequest): RichRequest

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

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

    Permalink
    Definition Classes
    ServletApiImplicits
  58. implicit def enrichSession(session: HttpSession): RichHttpServletSession

    Permalink
    Definition Classes
    ServletApiImplicits
  59. def environment: String

    Permalink
    Definition Classes
    EnvironmentAccessor
  60. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  62. def error(handler: ErrorHandler): Unit

    Permalink
    Definition Classes
    ErrorHandlerAccessor
  63. def errorMessages(implicit ctx: SkinnyEngineContext = context): Seq[String]

    Permalink

    Returns errorMessages in the RequestScope.

    Returns errorMessages in the RequestScope.

    Definition Classes
    RequestScopeFeature
  64. def executeRoutes(request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase → CoreHandler
  65. implicit def executionContext: ExecutionContext

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  66. def extractStatusCode(e: HaltException): Int

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  67. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  68. def formMultiParams(implicit ctx: SkinnyEngineContext): engine.MultiParams

    Permalink

    Returns query string multi parameters as a Map value.

    Returns query string multi parameters as a Map value.

    Definition Classes
    FormParamsFeature
  69. def formParams(implicit ctx: SkinnyEngineContext): engine.Params

    Permalink

    Returns query string parameters as a Map value.

    Returns query string parameters as a Map value.

    Definition Classes
    FormParamsFeature
  70. def format(implicit ctx: SkinnyEngineContext): String

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

    Permalink
    Attributes
    protected
    Definition Classes
    ApiFormats
  72. def format_=(formatValue: String)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Definition Classes
    RequestFormatAccessor
  73. val formats: Map[String, String]

    Permalink
    Definition Classes
    ApiFormats
  74. def fromJSONString[A](json: String, underscoreKeys: Boolean, asIs: Boolean)(implicit mf: Manifest[A]): Option[A]

    Permalink
    Definition Classes
    JSONStringOps
  75. def fromJSONStringAsIs[A](json: String)(implicit mf: Manifest[A]): Option[A]

    Permalink
    Definition Classes
    JSONStringOps
  76. def fromJSONStringToJValue(json: String, underscoreKeys: Boolean, asIs: Boolean): Option[JValue]

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

    Permalink
    Definition Classes
    JSONStringOps
  78. def fullUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, withSessionId: Boolean)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    UrlGenerator
  79. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  80. def getFromRequestScope[A](key: String)(implicit ctx: SkinnyEngineContext = context): Option[A]

    Permalink

    Fetches value from request scope.

    Fetches value from request scope.

    A

    type

    key

    key

    returns

    value if exists

    Definition Classes
    RequestScopeFeature
  81. def halt(result: ActionResult): Nothing

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

    Permalink
    Definition Classes
    HaltPassControl
  83. def haltWithBody[A](httpStatus: Int)(implicit ctx: SkinnyEngineContext, format: engine.Format = Format.HTML): A

    Permalink

    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

    Attributes
    protected
  84. def handle(request: HttpServletRequest, response: HttpServletResponse): Unit

    Permalink
    Definition Classes
    CoreHandler → Handler
  85. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  86. def inferFromFormats: ContentTypeInferrer

    Permalink
    Attributes
    protected
    Definition Classes
    ApiFormats
  87. def initParameter(name: String): Option[String]

    Permalink
    Definition Classes
    ServletContextAccessor
  88. def initialize(config: ConfigT): Unit

    Permalink
    Definition Classes
    ServletContextAccessor → Initializable
  89. def initializeRequestScopeAttributes(implicit ctx: SkinnyEngineContext = context): Any

    Permalink
    Definition Classes
    RequestScopeFeature
  90. def invoke(matchedRoute: MatchedRoute): Option[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  91. def isAsyncExecutable(result: Any): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  92. def isDevelopment(): Boolean

    Permalink

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

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

    returns

    true/false

    Definition Classes
    EnvFeature
  93. def isDevelopmentMode: Boolean

    Permalink

    Replaces Scalatra's development mode with SkinnyEnv.

    Replaces Scalatra's development mode with SkinnyEnv.

    Definition Classes
    EnvFeature → EnvironmentAccessor
  94. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  95. def isProduction(): Boolean

    Permalink

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

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

    returns

    true/false

    Definition Classes
    EnvFeature
  96. def isStaging(): Boolean

    Permalink

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

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

    returns

    true/false

    Definition Classes
    EnvFeature
  97. def isTest(): Boolean

    Permalink

    Predicates current env is "test".

    Predicates current env is "test".

    returns

    true/false

    Definition Classes
    EnvFeature
  98. implicit val jsonFormats: Formats

    Permalink
    Attributes
    protected
    Definition Classes
    JSONStringOpsConfig
  99. def keyAndErrorMessages(implicit ctx: SkinnyEngineContext = context): Map[String, Seq[String]]

    Permalink

    Returns keyAndErrorMessages in the RequestScope.

    Returns keyAndErrorMessages in the RequestScope.

    Definition Classes
    RequestScopeFeature
  100. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  101. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  102. implicit def lowestPriorityAny2T[T](implicit arg0: Manifest[T]): engine.implicits.TypeConverter[Any, T]

    Permalink
    Definition Classes
    LowestPriorityImplicits
  103. def methodNotAllowed(f: (Set[HttpMethod]) ⇒ Any): Unit

    Permalink
    Definition Classes
    SkinnyEngineBase
  104. val mimeTypes: Map[String, String]

    Permalink
    Definition Classes
    ApiFormats
  105. def mount(ctx: javax.servlet.ServletContext): Unit

    Permalink
    Definition Classes
    Handler
  106. def multiParams(key: String)(implicit ctx: SkinnyEngineContext): Seq[String]

    Permalink
    Definition Classes
    ParamsAccessor
  107. def multiParams(implicit ctx: SkinnyEngineContext): engine.MultiParams

    Permalink
    Definition Classes
    ParamsAccessor
  108. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  109. def notFound(fun: ⇒ Any): Unit

    Permalink
    Definition Classes
    SkinnyEngineBase
  110. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  112. def params(implicit ctx: SkinnyEngineContext): engine.Params

    Permalink
    Definition Classes
    ParamsAccessor
  113. def params(key: Symbol)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    ParamsAccessor
  114. def params(key: String)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    ParamsAccessor
  115. def pass(): Nothing

    Permalink
    Definition Classes
    HaltPassControl
  116. implicit def pathPatternParser2RouteMatcher(pattern: PathPattern): RouteMatcher

    Permalink
    Attributes
    protected
    Definition Classes
    RouteMatcherImplicits
  117. def prefixForJSONVulnerabilityProtection: String

    Permalink
    Attributes
    protected
    Definition Classes
    JSONStringOpsConfig
  118. def queryMultiParams(implicit ctx: SkinnyEngineContext): engine.MultiParams

    Permalink

    Returns query string multi parameters as a Map value.

    Returns query string multi parameters as a Map value.

    Definition Classes
    QueryParamsFeature
  119. def queryParams(implicit ctx: SkinnyEngineContext): engine.Params

    Permalink

    Returns query string parameters as a Map value.

    Returns query string parameters as a Map value.

    Definition Classes
    QueryParamsFeature
  120. def redirect(uri: String)(implicit ctx: SkinnyEngineContext): Nothing

    Permalink
    Definition Classes
    SkinnyEngineBase
  121. def redirect301(location: String, headers: Map[String, String] = Map.empty, reason: String = "")(implicit ctx: SkinnyEngineContext = context): ActionResult

    Permalink

    Responds as "301 Moved Permanently"

    Responds as "301 Moved Permanently"

    returns

    ActionResult

    Definition Classes
    ExplicitRedirectFeature
  122. def redirect302(location: String, headers: Map[String, String] = Map.empty, reason: String = "")(implicit ctx: SkinnyEngineContext = context): ActionResult

    Permalink

    Responds as "302 Found"

    Responds as "302 Found"

    returns

    ActionResult

    Definition Classes
    ExplicitRedirectFeature
  123. def redirect303(location: String, headers: Map[String, String] = Map.empty, reason: String = "")(implicit ctx: SkinnyEngineContext = context): ActionResult

    Permalink

    Responds as "303 See Other"

    Responds as "303 See Other"

    returns

    ActionResult

    Definition Classes
    ExplicitRedirectFeature
  124. implicit def regex2RouteMatcher(regex: Regex): RouteMatcher

    Permalink
    Attributes
    protected
    Definition Classes
    RouteMatcherImplicits
  125. def relativeUrl(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    UrlGenerator
  126. def removeRoute(method: String, route: Route): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  127. def removeRoute(method: HttpMethod, route: Route): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  128. def renderHaltException(e: HaltException)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  129. def renderPipeline(implicit ctx: SkinnyEngineContext): RenderPipeline

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  130. def renderResponse(actionResult: Any)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  131. def renderResponseBody(actionResult: Any)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  132. def renderUncaughtException(e: Throwable)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  133. def renderWithFormat(entity: Any)(implicit format: engine.Format = Format.HTML): String

    Permalink

    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
  134. def request(implicit ctx: SkinnyEngineContext): HttpServletRequest

    Permalink
    Definition Classes
    SkinnyEngineContextInitializer
  135. def requestFormat(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    ApiFormats
  136. def requestScope(keyAndValues: Seq[(String, Any)])(implicit ctx: SkinnyEngineContext): RequestScopeFeature

    Permalink

    Set attributes to request scope.

    Set attributes to request scope.

    keyAndValues

    collection of key and value.

    returns

    self

    Definition Classes
    RequestScopeFeature
  137. def requestScope(keyAndValue: (String, Any))(implicit ctx: SkinnyEngineContext): RequestScopeFeature

    Permalink

    Set attribute to request scope.

    Set attribute to request scope.

    keyAndValue

    key and value

    returns

    self

    Definition Classes
    RequestScopeFeature
  138. def requestScope(implicit ctx: SkinnyEngineContext = context): Map[String, Any]

    Permalink

    Returns whole request scope attributes.

    Returns whole request scope attributes.

    returns

    whole attributes

    Definition Classes
    RequestScopeFeature
  139. def respondTo: Seq[engine.Format]

    Permalink
    Attributes
    protected
    Definition Classes
    Handler
  140. def response(implicit ctx: SkinnyEngineContext): HttpServletResponse

    Permalink
    Definition Classes
    SkinnyEngineContextInitializer
  141. val routes: RouteRegistry

    Permalink
    Attributes
    protected
    Definition Classes
    RouteRegistryAccessor
  142. def runRoutes(routes: Traversable[Route]): Stream[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  143. implicit def safe[S, T](f: (S) ⇒ T): engine.implicits.TypeConverter[S, T]

    Permalink
    Definition Classes
    TypeConverterSupport
  144. implicit def safeOption[S, T](f: (S) ⇒ Option[T]): engine.implicits.TypeConverter[S, T]

    Permalink
    Definition Classes
    TypeConverterSupport
  145. def sensitiveParameterNames: Seq[String]

    Permalink

    Returns registered sensitive parameter names.

    Returns registered sensitive parameter names.

    Attributes
    protected
    Definition Classes
    SensitiveParametersFeature
  146. implicit def seqHead[T](implicit elementConverter: engine.implicits.TypeConverter[String, T], mf: Manifest[T]): engine.implicits.TypeConverter[Seq[String], T]

    Permalink
    Definition Classes
    DefaultImplicits
  147. implicit def seqToSeq[T](implicit elementConverter: engine.implicits.TypeConverter[String, T], mf: Manifest[T]): engine.implicits.TypeConverter[Seq[String], Seq[T]]

    Permalink
    Definition Classes
    DefaultImplicits
  148. def serverAuthority(implicit ctx: SkinnyEngineContext): String

    Permalink
    Attributes
    protected
    Definition Classes
    ServletContextAccessor
  149. def serverHost(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    ServletContextAccessor
  150. def serverPort(implicit ctx: SkinnyEngineContext): Int

    Permalink
    Definition Classes
    ServletContextAccessor
  151. implicit def servletContext: javax.servlet.ServletContext

    Permalink
    Definition Classes
    ServletContextAccessor
  152. def session(key: Symbol)(implicit ctx: SkinnyEngineContext): Any

    Permalink
    Definition Classes
    SessionImplicits
  153. def session(key: String)(implicit ctx: SkinnyEngineContext): Any

    Permalink
    Definition Classes
    SessionImplicits
  154. implicit def session(implicit ctx: SkinnyEngineContext): HttpSession

    Permalink
    Definition Classes
    SessionImplicits
  155. def sessionLocaleKey: String

    Permalink

    Session key to store current locale string.

    Session key to store current locale string.

    returns

    key

    Definition Classes
    LocaleFeature
  156. def sessionOption(implicit ctx: SkinnyEngineContext): Option[HttpSession]

    Permalink
    Definition Classes
    SessionImplicits
  157. def set(keyAndValues: Seq[(String, Any)])(implicit ctx: SkinnyEngineContext): RequestScopeFeature

    Permalink

    Set attributes to request scope.

    Set attributes to request scope.

    Definition Classes
    RequestScopeFeature
  158. def set(keyAndValue: (String, Any))(implicit ctx: SkinnyEngineContext): RequestScopeFeature

    Permalink

    Set attribute to request scope.

    Set attribute to request scope.

    Definition Classes
    RequestScopeFeature
  159. def setAsParams(model: Any)(implicit ctx: SkinnyEngineContext = context): Unit

    Permalink

    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
  160. def setContentTypeIfAbsent()(implicit format: engine.Format = Format.HTML): Unit

    Permalink

    Set Content-Type for the format if absent.

    Set Content-Type for the format if absent.

    format

    format

    Attributes
    protected
  161. def setCurrentLocale(locale: String)(implicit ctx: SkinnyEngineContext): Unit

    Permalink

    Set current locale.

    Set current locale.

    locale

    locale string

    Attributes
    protected
    Definition Classes
    LocaleFeature
  162. def setI18n(implicit ctx: SkinnyEngineContext = context): RequestScopeFeature

    Permalink

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

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

    ctx

    context

    returns

    self

    Definition Classes
    RequestScopeFeature
  163. def setMultiparams[S](matchedRoute: Option[MatchedRoute], originalParams: engine.MultiParams)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineBase
  164. def setParams(implicit ctx: SkinnyEngineContext = context): Unit

    Permalink

    Set params to request scope.

    Set params to request scope.

    Definition Classes
    RequestScopeFeature
  165. def setParamsToRequestScope(implicit ctx: SkinnyEngineContext = context): Unit

    Permalink

    Set params to request scope.

    Set params to request scope.

    Definition Classes
    RequestScopeFeature
  166. def shutdown(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Initializable
  167. def skinnyEngineContext(implicit ctx: javax.servlet.ServletContext): SkinnyEngineContext

    Permalink
    Definition Classes
    SkinnyEngineContextInitializer
  168. def skinnyEnv: Option[String]

    Permalink

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

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

    returns

    env string such as "production"

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

    Permalink

    Registered error handlers.

    Registered error handlers.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    ParametersGetAsImplicits
  186. def stackTraceDepthForTimeLogging: Int

    Permalink
    Attributes
    protected
    Definition Classes
    TimeLogging
  187. def status(implicit ctx: SkinnyEngineContext): Int

    Permalink
    Definition Classes
    ResponseStatusAccessor
  188. def status_=(code: Int)(implicit ctx: SkinnyEngineContext): Unit

    Permalink
    Definition Classes
    ResponseStatusAccessor
  189. implicit def string2RouteMatcher(path: String): RouteMatcher

    Permalink
    Attributes
    protected
    Definition Classes
    RouteMatcherImplicits
  190. implicit val stringToBoolean: engine.implicits.TypeConverter[String, Boolean]

    Permalink
    Definition Classes
    DefaultImplicits
  191. implicit val stringToByte: engine.implicits.TypeConverter[String, Byte]

    Permalink
    Definition Classes
    DefaultImplicits
  192. def stringToDate(format: ⇒ String): engine.implicits.TypeConverter[String, Date]

    Permalink
    Definition Classes
    DefaultImplicits
  193. def stringToDateFormat(format: ⇒ DateFormat): engine.implicits.TypeConverter[String, Date]

    Permalink
    Definition Classes
    DefaultImplicits
  194. implicit val stringToDouble: engine.implicits.TypeConverter[String, Double]

    Permalink
    Definition Classes
    DefaultImplicits
  195. implicit val stringToFloat: engine.implicits.TypeConverter[String, Float]

    Permalink
    Definition Classes
    DefaultImplicits
  196. implicit val stringToInt: engine.implicits.TypeConverter[String, Int]

    Permalink
    Definition Classes
    DefaultImplicits
  197. implicit val stringToLong: engine.implicits.TypeConverter[String, Long]

    Permalink
    Definition Classes
    DefaultImplicits
  198. implicit def stringToRicherString(s: String): RicherString

    Permalink
    Definition Classes
    RicherStringImplicits
  199. implicit val stringToSelf: engine.implicits.TypeConverter[String, String]

    Permalink
    Definition Classes
    DefaultImplicits
  200. def stringToSeq[T](elementConverter: engine.implicits.TypeConverter[String, T], separator: String)(implicit arg0: Manifest[T]): engine.implicits.TypeConverter[String, Seq[T]]

    Permalink
    Definition Classes
    DefaultImplicits
  201. implicit val stringToShort: engine.implicits.TypeConverter[String, Short]

    Permalink
    Definition Classes
    DefaultImplicits
  202. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  203. def toJSON(v: Any): JValue

    Permalink
    Definition Classes
    JSONStringOps
  204. def toJSONString(v: Any, underscoreKeys: Boolean): String

    Permalink
    Definition Classes
    JSONStringOps
  205. def toJSONStringAsIs(v: Any): String

    Permalink
    Definition Classes
    JSONStringOps
  206. def toPrettyJSONString(v: Any, underscoreKeys: Boolean): String

    Permalink
    Definition Classes
    JSONStringOps
  207. def toPrettyJSONStringAsIs(v: Any): String

    Permalink
    Definition Classes
    JSONStringOps
  208. def toSnakeCase(s: String): String

    Permalink

    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
  209. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  210. implicit def toTypedMultiParams(params: engine.MultiParams): TypedMultiParams

    Permalink
    Definition Classes
    EngineParamsImplicits
  211. implicit def toTypedParams(params: engine.Params): TypedParams

    Permalink
    Definition Classes
    EngineParamsImplicits
  212. def url(route: Route, params: Map[String, String], splats: Iterable[String])(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    UrlGeneratorSupport
  213. def url(route: Route, splat: String, moreSplats: String*)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    UrlGeneratorSupport
  214. def url(route: Route, params: (String, String)*)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    UrlGeneratorSupport
  215. def url(path: String, params: Iterable[(String, Any)], includeContextPath: Boolean, includeServletPath: Boolean, absolutize: Boolean, withSessionId: Boolean)(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    UrlGenerator
  216. def useJSONVulnerabilityProtection: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    JSONStringOpsConfig
  217. def useSnakeCasedParamKeys: Boolean

    Permalink

    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
  218. def useUnderscoreKeysForJSON: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    JSONStringOpsConfig
  219. def validation(params: Params, validations: NewValidation*)(implicit locale: Locale = ...): MapValidator

    Permalink

    Creates new validation form.

    Creates new validation form.

    params

    params

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    ValidationFeature
  220. def validationWithParams(validations: NewValidation*)(implicit locale: Locale = ...): MapValidator

    Permalink

    Creates new validation form.

    Creates new validation form.

    validations

    validations

    locale

    current locale

    returns

    validator

    Definition Classes
    ValidationFeature
  221. def validationWithParamsAndPrefix(prefix: String, params: Params, validations: NewValidation*)(implicit locale: Locale = ...): MapValidator

    Permalink

    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
  222. def validationWithPrefix(params: Params, prefix: String, validations: NewValidation*)(implicit ctx: SkinnyEngineContext): MapValidator

    Permalink

    Creates new validation form.

    Creates new validation form.

    params

    params

    prefix

    key prefix for error message

    validations

    validations

    returns

    validator

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  226. def warnElapsedTime[A](millis: Long, additionalLines: ⇒ Seq[String])(action: ⇒ A): A

    Permalink
    Definition Classes
    TimeLogging
  227. def warnElapsedTimeWithRequest[A](millis: Long, additionalLines: Seq[String] = Nil)(action: ⇒ A)(implicit context: SkinnyEngineContext): A

    Permalink
    Definition Classes
    TimeLoggingFeature
  228. def withFormat[A](format: engine.Format)(action: ⇒ A): A

    Permalink

    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
  229. def withOutputStream(f: (ServletOutputStream) ⇒ Unit): Unit

    Permalink
    Definition Classes
    ChunkedResponseFeature
  230. def withRequest[A](request: HttpServletRequest)(f: ⇒ A): A

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineContextInitializer
  231. def withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineContextInitializer
  232. def withResponse[A](response: HttpServletResponse)(f: ⇒ A): A

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyEngineContextInitializer
  233. def withRouteMultiParams[S](matchedRoute: Option[MatchedRoute])(thunk: ⇒ S): S

    Permalink
    Attributes
    protected
    Definition Classes
    ApiFormats → SkinnyEngineBase
  234. def writeChunk(chunk: Array[Byte])(implicit stream: ServletOutputStream = response.getOutputStream): Unit

    Permalink
    Definition Classes
    ChunkedResponseFeature
  235. def xmlItemName: String

    Permalink
    Attributes
    protected
  236. def xmlRootName: String

    Permalink
    Attributes
    protected

Deprecated Value Members

  1. def responseFormat(implicit ctx: SkinnyEngineContext): String

    Permalink
    Definition Classes
    ApiFormats
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) format now means the same as responseFormat, responseFormat will be removed eventually

Inherited from SkinnyFilterActivation

Inherited from ParamsPermitImplicits

Inherited from ParametersGetAsImplicits

Inherited from RoutesAsImplicits

Inherited from ThreadLocalRequestFeature

Inherited from TimeLoggingFeature

Inherited from TimeLogging

Inherited from ValidationFeature

Inherited from JSONFeature

Inherited from JSONStringOpsConfig

Inherited from JSONStringOps

Inherited from BeforeAfterActionFeature

Inherited from ChunkedResponseFeature

Inherited from RequestScopeFeature

Inherited from LocaleFeature

Inherited from BeforeAfterDsl

Inherited from ActionDefinitionFeature

Inherited from ExplicitRedirectFeature

Inherited from UrlGeneratorSupport

Inherited from FormParamsFeature

Inherited from QueryParamsFeature

Inherited from EnvFeature

Inherited from ApiFormats

Inherited from SkinnyEngineBase

Inherited from SessionImplicits

Inherited from DefaultImplicits

Inherited from LowPriorityImplicits

Inherited from LowestPriorityImplicits

Inherited from engine.implicits.TypeConverterSupport

Inherited from EngineParamsImplicits

Inherited from CookiesImplicits

Inherited from RouteMatcherImplicits

Inherited from HaltPassControl

Inherited from UrlGenerator

Inherited from ResponseStatusAccessor

Inherited from ResponseContentTypeAccessor

Inherited from RequestFormatAccessor

Inherited from ParamsAccessor

Inherited from EnvironmentAccessor

Inherited from ErrorHandlerAccessor

Inherited from AsyncSupported

Inherited from CoreHandler

Inherited from Handler

Inherited from logging.LoggerProvider

Inherited from ServletContextAccessor

Inherited from RicherStringImplicits

Inherited from ServletApiImplicits

Inherited from RouteRegistryAccessor

Inherited from SkinnyEngineContextInitializer

Inherited from Initializable

Inherited from AnyRef

Inherited from Any

Ungrouped