Renders with template.
Renders with template.
path name
format (HTML,JSON,XML...)
body
Predicates the template exists.
Predicates the template exists.
path name
format (HTML,JSON,XML...)
true/false
Returns possible template paths.
Returns possible template paths. Result is a list because the template engine may support multiple template languages.
path name
format (HTML,JSON,XML...)
actual path
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).
Adds action definition
Add param to params in the request scope.
Override to append HTTP method information to Route objects.
Override to append HTTP method information to Route objects.
Registers afterAction to this controller.
Registers afterAction to this controller.
this action should be applied only for these action methods
this action should not be applied for these action methods
action
If you prefer #afterFilter than #afterAction, keep going!
If you prefer #afterFilter than #afterAction, keep going!
Registers beforeAction to this controller.
Registers beforeAction to this controller.
this action should be applied only for these action methods
this action should not be applied for these action methods
action
If you prefer #beforeFilter than #beforeAction, keep going!
If you prefer #beforeFilter than #beforeAction, keep going!
Default charset.
Default charset.
Returns JSON string value.
Creates skinny.
Creates skinny.I18n instance for current locale.
current locale
i18n provider
Returns action name for this request.
Returns current locale for this request.
Returns current locale for this request.
current locale
Returns default locale.
Returns default locale.
Returns erorrMessages in the RequestScope.
Returns erorrMessages in the RequestScope.
Extracts a value from JSON string.
Extracts a value from JSON string. NOTE: When you convert to Map objects, be aware that underscoreKeys is false by default.
type
json string
value
Halts with body which responds to the specified format.
Halts with body which responds to the specified format.
response type
http status
format (HTML,JSON,XML...)
body if possible
Predicates current env is "development" or "dev".
Predicates current env is "production" or "prod".
Predicates current env is "staging" or "qa".
Predicates current env is "test".
JSON format support implicitly.
JSON format support implicitly.
Returns keyAndErrorMessages in the RequestScope.
Returns keyAndErrorMessages in the RequestScope.
the prefix for JSON Vulnerability Protection.
the prefix for JSON Vulnerability Protection. see: "https://docs.angularjs.org/api/ng/service/$http"
Responds as "301 Moved Permanently"
Responds as "302 Found"
Responds as "303 See Other"
Renders body with template.
Renders body with template.
path name
format (HTML,JSON,XML...)
body
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
format (HTML,JSON,XML...)
body if possible
Fetches value from request scope.
Fetches value from request scope.
type
key
value if exists
Set attributes to request scope.
Set attributes to request scope.
collection of key and value.
self
Set attribute to request scope.
Set attribute to request scope.
key and value
self
Returns whole request scope attributes.
Returns whole request scope attributes.
whole attributes
Defines formats to be respond.
Defines formats to be respond. By default, HTML, JSON, XML are available.
formats
Returns JSON response.
Returns JSON response.
entity
charset
prettify if true
body
Returns registered sensitive parameter names.
Returns registered sensitive parameter names.
Session key to store current locale string.
Set attributes to request scope.
Set attributes to request scope.
Set attribute to request scope.
Set attribute to request scope.
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 instance
Set current locale.
Set {{skinny.
Set {{skinny.I18n}} object for the current request to request scope.
current locale
self
Set params to request scope.
Set params to request scope.
Set params to request scope.
Set params to request scope.
Env string value from "skinny.
Env string value from "skinny.env" or "org.scalatra.environment".
env string such as "production"
Converts a value to JSON value.
Converts a value to JSON string.
Converts a value to prettified JSON string.
Converts a value to prettified JSON string.
value
json string
Converts string value to snake_case'd value.
Converts string value to snake_case'd value.
string value
snake_case'd value
Use the prefix for JSON Vulnerability Protection.
Use the prefix for JSON Vulnerability Protection. see: "https://docs.angularjs.org/api/ng/service/$http"
Defines use snake_case'd keys.
Defines use snake_case'd keys.
true if use snake_case keys (default: false)
Default key policy.
Default key policy.
Creates new validation form.
Creates new validation form.
params
validations
current locale
validator
Creates new validation form.
Creates new validation form.
validations
current locale
validator
Creates new validation form.
Creates new validation form.
key prefix for error message
params
validations
current locale
validator
Creates new validation form.
Creates new validation form.
params
key prefix for error message
validations
current locale
validator
Provides code block with format.
Provides code block with format. If absent, halt as status 406.
response type
format
action
result
(Since version 2.1.0) Do not invoke directly. Use withRequest
to change the binding, or request to get the value
(Since version 2.1.0) Do not invoke directly. Use withResponse
to change the binding, or response
to get the value
(Since version 2.1.0) Use servletContext instead
(Since version 2.3) format
now means the same as responseFormat
, responseFormat
will be removed eventually
(Since version 2.1.0) Use status_=(Int) instead
TemplateEngine support for Skinny app.