Packages

t

com.datasolvr.services.core

ServletUtilities

trait ServletUtilities extends JsonSerialization

Self Type
ServletUtilities with ScalatraServlet
Linear Supertypes
JsonSerialization, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServletUtilities
  2. JsonSerialization
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 array(name: String): Array[String]
    Attributes
    protected
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bool(name: String): Boolean
    Attributes
    protected
  7. def boolOption(name: String): Option[Boolean]
    Attributes
    protected
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. def date(name: String)(implicit codec: JsonValueCodec[LocalDateTime]): LocalDateTime
    Attributes
    protected
  10. def dateOption(name: String)(implicit codec: JsonValueCodec[LocalDateTime]): Option[LocalDateTime]
    Attributes
    protected
  11. def dateOrElse(name: String, default: LocalDateTime)(implicit codec: JsonValueCodec[LocalDateTime]): LocalDateTime
    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def fromJson[T](json: String)(implicit codec: JsonValueCodec[T]): T

    Deserializes a JSON string into a given type.

    Deserializes a JSON string into a given type.

    T

    The type to deserialize the content into.

    Definition Classes
    JsonSerialization
  15. def fromJsonBytes[T](json: ByteBuffer)(implicit codec: JsonValueCodec[T]): T

    Deserializes a JSON byte buffer into a given type.

    Deserializes a JSON byte buffer into a given type. This is more efficient than fromJson.

    T

    The type to deserialize the content into.

    Definition Classes
    JsonSerialization
  16. def fromJsonBytesOption[T](json: ByteBuffer)(implicit codec: JsonValueCodec[T]): Option[T]

    Same as fromJsonBytes, but handles option values, by deserializing empty buffer to None.

    Same as fromJsonBytes, but handles option values, by deserializing empty buffer to None.

    T

    The type to deserialize the content into.

    Definition Classes
    JsonSerialization
  17. def fromJsonOption[T](json: String)(implicit codec: JsonValueCodec[T]): Option[T]

    Same as fromJson, but handles option values, by deserializing empty string to None.

    Same as fromJson, but handles option values, by deserializing empty string to None.

    T

    The type to deserialize the content into.

    Definition Classes
    JsonSerialization
  18. def get(channel: GetStream)(function: (OutputStream) ⇒ Unit): Unit
    Attributes
    protected
  19. def get[TResult <: AnyRef](channel: GetJsonOption[TResult])(action: ⇒ Option[TResult])(implicit arg0: ClassTag[TResult], arg1: scala.reflect.api.JavaUniverse.TypeTag[TResult], codec: JsonValueCodec[TResult]): Unit
    Attributes
    protected
  20. def get[TResult <: AnyRef](channel: GetJson[TResult])(action: ⇒ TResult)(implicit codec: JsonValueCodec[TResult]): Unit
    Attributes
    protected
  21. def get(channel: GetRaw)(action: ⇒ Any): Unit
    Attributes
    protected
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def int(name: String): Int
    Attributes
    protected
  25. def intOption(name: String): Option[Int]
    Attributes
    protected
  26. def intOrElse(name: String, default: Int): Int
    Attributes
    protected
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def localDate(name: String)(implicit codec: JsonValueCodec[LocalDate]): LocalDate
    Attributes
    protected
  29. def localDateOption(name: String)(implicit codec: JsonValueCodec[LocalDate]): Option[LocalDate]
    Attributes
    protected
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def post(channel: PostWithStream)(function: (String, OutputStream) ⇒ Unit): Unit
    Attributes
    protected
  34. def post[TRequest <: AnyRef](channel: PostJsonOptionWithStream[TRequest])(function: (Option[TRequest], OutputStream) ⇒ Unit)(implicit arg0: ClassTag[TRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[TRequest], codec: JsonValueCodec[TRequest]): Unit
    Attributes
    protected
  35. def post[TRequest <: AnyRef](channel: PostJsonWithStream[TRequest])(function: (TRequest, OutputStream) ⇒ Unit)(implicit arg0: ClassTag[TRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[TRequest], codec: JsonValueCodec[TRequest]): Unit
    Attributes
    protected
  36. def post[TRequest <: AnyRef, TResponse <: AnyRef](channel: PostJsonToJson[TRequest, TResponse])(function: (TRequest) ⇒ TResponse)(implicit arg0: ClassTag[TRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[TRequest], arg2: ClassTag[TResponse], arg3: scala.reflect.api.JavaUniverse.TypeTag[TResponse], codec1: JsonValueCodec[TRequest], codec2: JsonValueCodec[TResponse]): Unit
    Attributes
    protected
  37. def post[TRequest <: AnyRef, TResponse <: AnyRef](channel: PostJsonOptionToJson[TRequest, TResponse])(function: (Option[TRequest]) ⇒ TResponse)(implicit arg0: ClassTag[TRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[TRequest], arg2: ClassTag[TResponse], arg3: scala.reflect.api.JavaUniverse.TypeTag[TResponse], codec1: JsonValueCodec[TRequest], codec2: JsonValueCodec[TResponse]): Unit
    Attributes
    protected
  38. def post[TRequest <: AnyRef](channel: PostJsonOptionToRaw[TRequest])(function: (Option[TRequest]) ⇒ Any)(implicit arg0: ClassTag[TRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[TRequest], codec: JsonValueCodec[TRequest]): Unit
    Attributes
    protected
  39. def post[TRequest <: AnyRef](channel: PostJsonToRaw[TRequest])(function: (TRequest) ⇒ Any)(implicit arg0: ClassTag[TRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[TRequest], codec: JsonValueCodec[TRequest]): Unit
    Attributes
    protected
  40. def post[TResponse <: AnyRef](channel: PostRawToJson[TResponse])(action: ⇒ TResponse)(implicit arg0: ClassTag[TResponse], arg1: scala.reflect.api.JavaUniverse.TypeTag[TResponse], codec: JsonValueCodec[TResponse]): Unit
    Attributes
    protected
  41. def post[TResponse <: AnyRef](channel: PostRawToJsonOption[TResponse])(action: ⇒ Option[TResponse])(implicit arg0: ClassTag[TResponse], arg1: scala.reflect.api.JavaUniverse.TypeTag[TResponse], codec: JsonValueCodec[TResponse]): Unit
    Attributes
    protected
  42. def post[T](channel: PostRawToRaw)(action: ⇒ T): Unit
    Attributes
    protected
  43. val streamContent: String
    Attributes
    protected
  44. def string(name: String): String
    Attributes
    protected
  45. def stringOption(name: String): Option[String]
    Attributes
    protected
  46. def stringOrElse(name: String, default: String): String
    Attributes
    protected
  47. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  48. def toJson[T](obj: T)(implicit codec: JsonValueCodec[T]): String

    Serializes an object to a compact JSON string without indentation and line breaks.

    Serializes an object to a compact JSON string without indentation and line breaks.

    obj

    The object to serialize.

    Definition Classes
    JsonSerialization
  49. def toJsonBytes[T](obj: T)(implicit codec: JsonValueCodec[T]): Array[Byte]

    Serializes an object to a JSON bytes with UTF-8 encoding without indentation and line breaks.

    Serializes an object to a JSON bytes with UTF-8 encoding without indentation and line breaks. This is more efficient than toJson.

    obj

    The object to serialize.

    Definition Classes
    JsonSerialization
  50. def toJsonBytesOption[T](obj: Option[T])(implicit codec: JsonValueCodec[T]): Array[Byte]

    Same as toJsonBytes, but handles option values, which are serialized to empty arrays.

    Same as toJsonBytes, but handles option values, which are serialized to empty arrays.

    obj

    The object to serialize.

    Definition Classes
    JsonSerialization
  51. def toJsonOption[T](obj: Option[T])(implicit codec: JsonValueCodec[T]): String

    Same as toJson, but handles option values, which are serialized to empty strings.

    Same as toJson, but handles option values, which are serialized to empty strings.

    obj

    The object to serialize.

    Definition Classes
    JsonSerialization
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. def uuid(name: String): UUID
    Attributes
    protected
  54. def uuidOption(name: String): Option[UUID]
    Attributes
    protected
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  57. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def wildcard: Option[String]
    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from JsonSerialization

Inherited from AnyRef

Inherited from Any

Ungrouped