Object

xitrum.util

SeriDeseri

Related Doc: package util

Permalink

object SeriDeseri

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SeriDeseri
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bytesFromBase64(base64String: String): Option[Array[Byte]]

    Permalink
  6. def bytesFromHex(hex: String): Option[Array[Byte]]

    Permalink
  7. def bytesFromUrlSafeBase64(base64String: String): Option[Array[Byte]]

    Permalink

    base64String

    may contain optional padding ("=" characters)

  8. def bytesToBase64(bytes: Array[Byte]): String

    Permalink
  9. def bytesToHex(bytes: Array[Byte]): String

    Permalink

    returns

    Lower case hexadecimal string

  10. def bytesToUrlSafeBase64(bytes: Array[Byte]): String

    Permalink

    The result contains no padding ("=" characters) so that it can be used as request parameter name.

    The result contains no padding ("=" characters) so that it can be used as request parameter name. (Netty POST body decoder prohibits "=" in parameter name.)

    See http://en.wikipedia.org/wiki/Base_64#Padding

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromBase64[T](base64String: String)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink
  16. def fromBytes[T](bytes: Array[Byte])(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink
  17. def fromJValue[T](jvalue: JValue)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink

    Converts JSON4S JValue to Scala object (case class, Map, Seq etc.).

    Converts JSON4S JValue to Scala object (case class, Map, Seq etc.). If you want to do more complicated things, you should use JSON4S directly: https://github.com/json4s/json4s

  18. def fromJson[T](jsonString: String)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink

    Converts JSON string to Scala object (case class, Map, Seq etc.).

    Converts JSON string to Scala object (case class, Map, Seq etc.). If you want to do more complicated things, you should use JSON4S directly: https://github.com/json4s/json4s

  19. def fromSecureUrlSafeBase64[T](base64String: String, key: String, forCookie: Boolean)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink

    base64String

    may contain optional padding ("=" characters)

    forCookie

    If true, tries to GZIP uncompress if the input is compressed

  20. def fromSecureUrlSafeBase64[T](base64String: String, forCookie: Boolean = false)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink

    Decrypts using the key in config/xitrum.conf.

  21. def fromUrlSafeBase64[T](base64String: String)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    Permalink

    base64String

    may contain optional padding ("=" characters)

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toBase64(any: Any): String

    Permalink
  30. def toBytes(any: Any): Array[Byte]

    Permalink
  31. def toJValue(scalaObject: AnyRef): JValue

    Permalink

    Similar to toJson, but the result is JSON4S JValue instead of string, so that you can further transform it before rendering to string.

  32. def toJson(scalaObject: AnyRef): String

    Permalink

    Converts Scala object (case class, Map, Seq etc.) to JSON string.

    Converts Scala object (case class, Map, Seq etc.) to JSON string. If you want to do more complicated things, you should use JSON4S directly: https://github.com/json4s/json4s

  33. def toSecureUrlSafeBase64(any: Any, key: String, forCookie: Boolean): String

    Permalink

    The result contains no padding ("=" characters) so that it can be used as request parameter name.

    The result contains no padding ("=" characters) so that it can be used as request parameter name. (Netty POST body decoder prohibits "=" in parameter name.)

    See http://en.wikipedia.org/wiki/Base_64#Padding

    forCookie

    If true, tries to GZIP compress if > 4KB; the result may > 4KB

  34. def toSecureUrlSafeBase64(any: Any, forCookie: Boolean = false): String

    Permalink

    Encrypts using the key in config/xitrum.conf.

  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def toUrlSafeBase64(any: Any): String

    Permalink

    The result contains no padding ("=" characters) so that it can be used as request parameter name.

    The result contains no padding ("=" characters) so that it can be used as request parameter name. (Netty POST body decoder prohibits "=" in parameter name.)

    See http://en.wikipedia.org/wiki/Base_64#Padding

  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped