trait ServletUtilities extends JsonSerialization
- Alphabetic
- By Inheritance
- ServletUtilities
- JsonSerialization
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def array(name: String): Array[String]
- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bool(name: String): Boolean
- Attributes
- protected
- def boolOption(name: String): Option[Boolean]
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def date(name: String)(implicit codec: JsonValueCodec[LocalDateTime]): LocalDateTime
- Attributes
- protected
- def dateOption(name: String)(implicit codec: JsonValueCodec[LocalDateTime]): Option[LocalDateTime]
- Attributes
- protected
- def dateOrElse(name: String, default: LocalDateTime)(implicit codec: JsonValueCodec[LocalDateTime]): LocalDateTime
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- 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
- def get(channel: GetStream)(function: (OutputStream) => Unit): Unit
- Attributes
- protected
- 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
- def get[TResult <: AnyRef](channel: GetJson[TResult])(action: => TResult)(implicit codec: JsonValueCodec[TResult]): Unit
- Attributes
- protected
- def get(channel: GetRaw)(action: => Any): Unit
- Attributes
- protected
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def int(name: String): Int
- Attributes
- protected
- def intOption(name: String): Option[Int]
- Attributes
- protected
- def intOrElse(name: String, default: Int): Int
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def localDate(name: String)(implicit codec: JsonValueCodec[LocalDate]): LocalDate
- Attributes
- protected
- def localDateOption(name: String)(implicit codec: JsonValueCodec[LocalDate]): Option[LocalDate]
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def post(channel: PostWithStream)(function: (String, OutputStream) => Unit): Unit
- Attributes
- protected
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- def post[T](channel: PostRawToRaw)(action: => T): Unit
- Attributes
- protected
- val streamContent: String
- Attributes
- protected
- def string(name: String): String
- Attributes
- protected
- def stringOption(name: String): Option[String]
- Attributes
- protected
- def stringOrElse(name: String, default: String): String
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- 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
- 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
- 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
- def toString(): String
- Definition Classes
- AnyRef → Any
- def uuid(name: String): UUID
- Attributes
- protected
- def uuidOption(name: String): Option[UUID]
- Attributes
- protected
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def wildcard: Option[String]
- Attributes
- protected
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)