t

org.scalatra.commands

CommandSupport

trait CommandSupport extends ParamsValueReaderProperties with CommandExecutors

Support for org.scalatra.commands.Command binding and validation.

Self Type
CommandSupport with ScalatraBase
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommandSupport
  2. CommandExecutors
  3. ParamsValueReaderProperties
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type CommandType <: Command

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. implicit def asyncExecutor[T <: Command, S](handler: (T) ⇒ Future[ModelValidation[S]])(implicit executionContext: ExecutionContext): CommandExecutor[T, Future[ModelValidation[S]]]
    Definition Classes
    CommandExecutors
  6. implicit def asyncModelExecutor[T <: Command, S](handler: (S) ⇒ Future[ModelValidation[S]])(implicit executionContext: ExecutionContext, vw: (T) ⇒ S): CommandExecutor[T, Future[ModelValidation[S]]]
    Definition Classes
    CommandExecutors
  7. def bindCommand[T <: (CommandSupport.this)#CommandType](newCommand: T)(implicit request: HttpServletRequest, mf: Manifest[T]): T
    Attributes
    protected
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def command[T <: (CommandSupport.this)#CommandType](implicit request: HttpServletRequest, mf: Manifest[T]): T

    Create and bind a org.scalatra.commands.Command of the given type with the current Scalatra params.

    Create and bind a org.scalatra.commands.Command of the given type with the current Scalatra params.

    For every command type, creation and binding is performed only once and then stored into a request attribute.

  10. def commandOption[T <: (CommandSupport.this)#CommandType](implicit request: HttpServletRequest, mf: Manifest[T]): Option[T]
  11. def commandOrElse[T <: (CommandSupport.this)#CommandType](factory: ⇒ T)(implicit request: HttpServletRequest, mf: Manifest[T]): T

    Create and bind a org.scalatra.commands.Command of the given type with the current Scalatra params.

    Create and bind a org.scalatra.commands.Command of the given type with the current Scalatra params.

    For every command type, creation and binding is performed only once and then stored into a request attribute.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. def ifValid[T <: (CommandSupport.this)#CommandType](implicit mf: Manifest[T]): RouteMatcher

    Create a org.scalatra.RouteMatcher that evaluates true only if a command is valid.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. implicit def multiMapHeadViewMapValueReader[T <: MultiMapHeadView[String, String]](d: T): ValueReader[T, String]
    Definition Classes
    ParamsValueReaderProperties
  20. implicit def multiParamsValueReader(d: MultiParams): ValueReader[MultiParams, Seq[String]]
    Definition Classes
    ParamsValueReaderProperties
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. def registerCommand[T <: Command](cmd: ⇒ T)(implicit mf: Manifest[T]): Unit
  25. implicit def stringMapValueReader(d: Map[String, String]): ValueReader[Map[String, String], String]
    Definition Classes
    ParamsValueReaderProperties
  26. implicit def syncExecutor[T <: Command, S](handler: (T) ⇒ ModelValidation[S]): CommandExecutor[T, ModelValidation[S]]
    Definition Classes
    CommandExecutors
  27. implicit def syncModelExecutor[T <: Command, S](handler: (S) ⇒ ModelValidation[S])(implicit T: (T) ⇒ S): CommandExecutor[T, ModelValidation[S]]
    Definition Classes
    CommandExecutors
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CommandExecutors

Inherited from AnyRef

Inherited from Any

Ungrouped