A command executor that doesn't block while executing the command
A command executor that doesn't block while executing the command
The type of command to handle
The success result type
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
A command executor that can potentially block while executing the command, uses a model as input value for the handler function.
A command executor that can potentially block while executing the command, uses a model as input value for the handler function. This command requires an implicit conversion from command to model to be in scope ie.: by defining it in the companion object of the command.
The type of model
The success result type
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
Commonly-used field implementations factory.
Commonly-used field implementations factory.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
A command executor that can potentially block while executing the command
A command executor that can potentially block while executing the command
The type of command to handle
The success result type
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
A command executor that can potentially block while executing the command, uses a model as input value for the handler function.
A command executor that can potentially block while executing the command, uses a model as input value for the handler function. This command requires an implicit conversion from command to model to be in scope ie.: by defining it in the companion object of the command.
The type of model
The success result type
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
Trait that identifies a Command object, i.e.
Trait that identifies a Command object, i.e. a Scala class instance which fields are bound to external parameters taken from Scalatra' params object.
An usage example can be seen below:
class PersonForm extends Command { import Command._ val name = bind[String]("f_name") val surname = bind[String]("f_surname") val age = bind[Int]("f_age") val registeredOn = bind[Date]("f_reg_date" -> "yyyyMMdd") }
In the example above, class field name will be bound, at runtime, with a parameter named f_name and so on.
The binding is typed and for every registered type T
(see org.scalatra.util.conversion.DefaultImplicitConversions for
a list of all availables) an automatic conversion (String) => T
will take place during binding phase.
After that binding has been performed (i.e. after that org.scalatra.commands.Command#bindTo() has been called) on a specific instance, it is possible retrieve field values as scalaz.Validation, i.e.:
val form = new PersonForm form.doBinding(params) val registrationDate = form.registeredOn.value.getOrElse(new Date())
(Since version 2.6.0) Use scalatra-forms instead.
0.1
A typeclass for executing commands.
A typeclass for executing commands. This allows for picking an executor based on the return type of the method that is used to handle the command.
The command type
The result type of executing the command
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
Support for org.scalatra.commands.Command binding and validation.
Support for org.scalatra.commands.Command binding and validation.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.
(Since version 2.6.0) Use scalatra-forms instead.