t

org.scalatra.commands

JsonCommand

trait JsonCommand extends Command with JsonTypeConverterFactories

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonCommand
  2. JsonTypeConverterFactories
  3. JsonBindingImplicits
  4. JsonImplicitConversions
  5. BindingImplicits
  6. DefaultImplicitConversions
  7. LowPriorityImplicitConversions
  8. LowestPriorityImplicitConversions
  9. TypeConverterSupport
  10. Command
  11. ParamsValueReaderProperties
  12. BindingSyntax
  13. BindingValidatorImplicits
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type CommandTypeConverterFactory[T] = JsonTypeConverterFactory[T]
    Definition Classes
    JsonCommandCommand

Abstract Value Members

  1. implicit abstract def jsonFormats: Formats
    Attributes
    protected
    Definition Classes
    JsonImplicitConversions

Concrete 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. def >>[S](handler: (JsonCommand.this.type) ⇒ S)(implicit executor: ExecutorView[S]): S
    Definition Classes
    Command
  5. def afterBinding(action: ⇒ Any): Unit

    Add an action that will be evaluated after field binding has been done.

    Add an action that will be evaluated after field binding has been done.

    Attributes
    protected
    Definition Classes
    Command
  6. implicit val anyToBoolean: TypeConverter[Any, Boolean]
  7. implicit val anyToByte: TypeConverter[Any, Byte]
  8. implicit val anyToDouble: TypeConverter[Any, Double]
  9. implicit val anyToFloat: TypeConverter[Any, Float]
  10. implicit val anyToInt: TypeConverter[Any, Int]
  11. implicit val anyToLong: TypeConverter[Any, Long]
  12. implicit val anyToShort: TypeConverter[Any, Short]
  13. implicit val anyToString: TypeConverter[Any, String]
  14. def apply[S](handler: (JsonCommand.this.type) ⇒ S)(implicit executor: ExecutorView[S]): S
    Definition Classes
    Command
  15. def asBigDecimal(name: String): FieldDescriptor[BigDecimal]
    Definition Classes
    BindingSyntax
  16. def asBoolean(name: String): FieldDescriptor[Boolean]
    Definition Classes
    BindingSyntax
  17. def asByte(name: String): FieldDescriptor[Byte]
    Definition Classes
    BindingSyntax
  18. def asDate(name: String): FieldDescriptor[Date]
    Definition Classes
    BindingSyntax
  19. def asDateTime(name: String): FieldDescriptor[DateTime]
    Definition Classes
    BindingSyntax
  20. def asDouble(name: String): FieldDescriptor[Double]
    Definition Classes
    BindingSyntax
  21. def asFloat(name: String): FieldDescriptor[Float]
    Definition Classes
    BindingSyntax
  22. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  23. def asInt(name: String): FieldDescriptor[Int]
    Definition Classes
    BindingSyntax
  24. def asLong(name: String): FieldDescriptor[Long]
    Definition Classes
    BindingSyntax
  25. def asSeq[T](name: String)(implicit arg0: Manifest[T]): FieldDescriptor[Seq[T]]
    Definition Classes
    BindingSyntax
  26. def asShort(name: String): FieldDescriptor[Short]
    Definition Classes
    BindingSyntax
  27. def asString(name: String): FieldDescriptor[String]
    Definition Classes
    BindingSyntax
  28. implicit def asType[T](name: String)(implicit arg0: Manifest[T]): FieldDescriptor[T]
    Definition Classes
    BindingSyntax
  29. implicit def autoBind[T](fieldName: String)(implicit arg0: Manifest[T], arg1: TypeConverterFactory[T]): Field[T]
    Definition Classes
    Command
  30. def beforeBinding(action: ⇒ Any): Unit

    Add an action that will be evaluated before field binding occurs.

    Add an action that will be evaluated before field binding occurs.

    Attributes
    protected
    Definition Classes
    Command
  31. implicit def bind[T](field: FieldDescriptor[T])(implicit mf: Manifest[T], conv: TypeConverterFactory[T]): FieldDescriptor[T]
    Definition Classes
    Command
  32. def bindTo[S, I](data: S, params: MultiParams = MultiMap.empty, headers: Map[String, String] = Map.empty)(implicit r: (S) ⇒ ValueReader[S, I], mi: Manifest[I], multiParams: (MultiParams) ⇒ ValueReader[MultiParams, Seq[String]]): JsonCommand.this.type
    Definition Classes
    Command
  33. implicit def binding2field[T](field: FieldDescriptor[T])(implicit arg0: Manifest[T], arg1: TypeConverterFactory[T]): Field[T]
    Definition Classes
    Command
  34. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. val commandDescription: String
    Definition Classes
    Command
  36. val commandName: String
    Definition Classes
    Command
  37. implicit def defaultStringToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[String, Seq[T]]
    Definition Classes
    DefaultImplicitConversions
  38. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  40. def errors: Seq[Binding]

    Return a Map of all field command error keyed by field binding name (NOT the name of the variable in command object).

    Return a Map of all field command error keyed by field binding name (NOT the name of the variable in command object).

    Definition Classes
    Command
  41. def execute[S](handler: (JsonCommand.this.type) ⇒ S)(implicit executor: ExecutorView[S]): S
    Definition Classes
    Command
  42. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  43. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def isInvalid: Boolean
    Definition Classes
    Command
  47. def isValid: Boolean

    Check whether this command is valid.

    Check whether this command is valid.

    Definition Classes
    Command
  48. implicit val jsonToBigInt: TypeConverter[JValue, BigInt]
    Definition Classes
    JsonImplicitConversions
  49. implicit val jsonToBoolean: TypeConverter[JValue, Boolean]
    Definition Classes
    JsonImplicitConversions
  50. implicit val jsonToByte: TypeConverter[JValue, Byte]
    Definition Classes
    JsonImplicitConversions
  51. implicit def jsonToDate(implicit df: DateParser = JodaDateFormats.Web): TypeConverter[JValue, Date]
    Definition Classes
    JsonBindingImplicits
  52. def jsonToDate(format: ⇒ String): TypeConverter[JValue, Date]
    Definition Classes
    JsonImplicitConversions
  53. implicit def jsonToDateConversion(source: JValue): JsonDateConversion[JValue]
    Definition Classes
    JsonImplicitConversions
  54. def jsonToDateFormat(format: ⇒ DateFormat): TypeConverter[JValue, Date]
    Definition Classes
    JsonImplicitConversions
  55. implicit def jsonToDateTime(implicit df: DateParser = JodaDateFormats.Web): TypeConverter[JValue, DateTime]
    Definition Classes
    JsonBindingImplicits
  56. implicit val jsonToDouble: TypeConverter[JValue, Double]
    Definition Classes
    JsonImplicitConversions
  57. implicit val jsonToFloat: TypeConverter[JValue, Float]
    Definition Classes
    JsonImplicitConversions
  58. implicit val jsonToInt: TypeConverter[JValue, Int]
    Definition Classes
    JsonImplicitConversions
  59. implicit val jsonToLong: TypeConverter[JValue, Long]
    Definition Classes
    JsonImplicitConversions
  60. implicit val jsonToSelf: TypeConverter[JValue, String]
    Definition Classes
    JsonImplicitConversions
  61. implicit def jsonToSeq[T](implicit elementConverter: TypeConverter[JValue, T], mf: Manifest[T]): TypeConverter[JValue, Seq[T]]
    Definition Classes
    JsonImplicitConversions
  62. implicit def jsonToSeqConversion(source: JValue): AnyRef { def asSeq[T](implicit mf: Manifest[T],implicit tc: org.scalatra.util.conversion.TypeConverter[org.json4s.JValue,T]): Option[Seq[T]] }
    Definition Classes
    JsonImplicitConversions
  63. implicit val jsonToShort: TypeConverter[JValue, Short]
    Definition Classes
    JsonImplicitConversions
  64. implicit def jsonToValTypeConversion(source: JValue): JsonValConversion[JValue]
    Definition Classes
    JsonImplicitConversions
  65. implicit def jsonTypeConverterFactory[T](implicit seqConverter: TypeConverter[Seq[String], T], stringConverter: TypeConverter[String, T], jsonConverter: TypeConverter[JValue, T], formats: Formats): TypeConverterFactory[T]
    Definition Classes
    JsonTypeConverterFactories
  66. implicit def lowestPriorityAny2T[T](implicit arg0: Manifest[T]): TypeConverter[Any, T]
  67. implicit def multiMapHeadViewMapValueReader[T <: MultiMapHeadView[String, String]](d: T): ValueReader[T, String]
    Definition Classes
    ParamsValueReaderProperties
  68. implicit def multiParamsValueReader(d: MultiParams): ValueReader[MultiParams, Seq[String]]
    Definition Classes
    ParamsValueReaderProperties
  69. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  70. final def notify(): Unit
    Definition Classes
    AnyRef
  71. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  72. implicit def safe[S, T](f: (S) ⇒ T): TypeConverter[S, T]
    Definition Classes
    TypeConverterSupport
  73. implicit def safeOption[S, T](f: (S) ⇒ Option[T]): TypeConverter[S, T]

    Implicit convert a (String) => Option[T] function into a TypeConverter[T]

    Implicit convert a (String) => Option[T] function into a TypeConverter[T]

    Definition Classes
    TypeConverterSupport
  74. implicit def seqHead[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], T]
    Definition Classes
    DefaultImplicitConversions
  75. implicit def seqToSeq[T](implicit elementConverter: TypeConverter[String, T], mf: Manifest[T]): TypeConverter[Seq[String], Seq[T]]
    Definition Classes
    DefaultImplicitConversions
  76. implicit def stringMapValueReader(d: Map[String, String]): ValueReader[Map[String, String], String]
    Definition Classes
    ParamsValueReaderProperties
  77. implicit val stringToBoolean: TypeConverter[String, Boolean]
    Definition Classes
    DefaultImplicitConversions
  78. implicit val stringToByte: TypeConverter[String, Byte]
    Definition Classes
    DefaultImplicitConversions
  79. implicit def stringToDate(implicit df: DateParser = JodaDateFormats.Web): TypeConverter[String, Date]
    Definition Classes
    BindingImplicits
  80. def stringToDate(format: ⇒ String): TypeConverter[String, Date]
    Definition Classes
    DefaultImplicitConversions
  81. def stringToDateFormat(format: ⇒ DateFormat): TypeConverter[String, Date]
    Definition Classes
    DefaultImplicitConversions
  82. implicit def stringToDateTime(implicit df: DateParser = JodaDateFormats.Web): TypeConverter[String, DateTime]
    Definition Classes
    BindingImplicits
  83. implicit val stringToDouble: TypeConverter[String, Double]
    Definition Classes
    DefaultImplicitConversions
  84. implicit val stringToFloat: TypeConverter[String, Float]
    Definition Classes
    DefaultImplicitConversions
  85. implicit val stringToInt: TypeConverter[String, Int]
    Definition Classes
    DefaultImplicitConversions
  86. implicit val stringToLong: TypeConverter[String, Long]
    Definition Classes
    DefaultImplicitConversions
  87. implicit val stringToSelf: TypeConverter[String, String]
    Definition Classes
    DefaultImplicitConversions
  88. def stringToSeq[T](elementConverter: TypeConverter[String, T], separator: String = ",")(implicit arg0: Manifest[T]): TypeConverter[String, Seq[T]]
    Definition Classes
    DefaultImplicitConversions
  89. implicit def stringToSeqDate(implicit df: DateParser = JodaDateFormats.Web): TypeConverter[String, Seq[Date]]
    Definition Classes
    BindingImplicits
  90. implicit def stringToSeqDateTime(implicit df: DateParser = JodaDateFormats.Web): TypeConverter[String, Seq[DateTime]]
    Definition Classes
    BindingImplicits
  91. implicit val stringToShort: TypeConverter[String, Short]
    Definition Classes
    DefaultImplicitConversions
  92. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  93. def toString(): String
    Definition Classes
    Command → AnyRef → Any
  94. def typeConverterBuilder[I](tc: CommandTypeConverterFactory[_]): PartialFunction[ValueReader[_, _], TypeConverter[I, _]]
    Definition Classes
    JsonCommandCommand
  95. implicit def validatableGenericBinding[T](b: FieldDescriptor[T]): ValidatableGenericBinding[T]
    Definition Classes
    BindingValidatorImplicits
  96. implicit def validatableOrderedBinding[T](b: FieldDescriptor[T])(implicit T: (T) ⇒ Ordered[T]): ValidatableOrdered[T]
    Definition Classes
    BindingValidatorImplicits
  97. implicit def validatableSeqBinding[T <: Seq[_]](b: FieldDescriptor[T]): ValidatableSeq[T]
    Definition Classes
    BindingValidatorImplicits
  98. implicit def validatableStringBinding(b: FieldDescriptor[String]): ValidatableStringBinding
    Definition Classes
    BindingValidatorImplicits
  99. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonBindingImplicits

Inherited from JsonImplicitConversions

Inherited from BindingImplicits

Inherited from TypeConverterSupport

Inherited from Command

Inherited from BindingSyntax

Inherited from BindingValidatorImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped