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
Adds error handler which doesn't return result to SkinnyController.
Adds error handler which doesn't return result to SkinnyController.
Add param to params in the request scope.
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!
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 errorMessages in the RequestScope.
Returns errorMessages in the RequestScope.
Fetches value from request scope.
Fetches value from request scope.
type
key
value if exists
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
Returns keyAndErrorMessages in the RequestScope.
Returns keyAndErrorMessages in the RequestScope.
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
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
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 Content-Type for the format if absent.
Set Content-Type for the format if absent.
format
Set current locale.
Set {{skinny.
Set {{skinny.I18n}} object for the current request to request scope.
context
self
Set params to request scope.
Set params to request scope.
Set params to request scope.
Set params to request scope.
Registered error handlers.
Registered error handlers.
Converts string value to snake_case'd value.
Converts string value to snake_case'd value.
string value
snake_case'd value
Defines use snake_case'd keys.
Defines use snake_case'd keys.
true if use snake_case keys (default: false)
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
validator
Provides code block with format.
Provides code block with format. If absent, halt as status 406.
response type
format
action
result
Skinny Servlet Controller for REST APIs.
NOTICE: If you'd like to disable Set-Cookie header for session id, configure in web.xml