Packages

o

xitrum.util

SeriDeseri

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
    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. def bytesFromBase64(base64String: String): Option[Array[Byte]]
  6. def bytesFromHex(hex: String): Option[Array[Byte]]
  7. def bytesFromUrlSafeBase64(base64String: String): Option[Array[Byte]]

    base64String

    may contain optional padding ("=" characters)

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

    returns

    Lower case hexadecimal string

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

    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
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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. def fromBase64[T](base64String: String)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]
  16. def fromBytes[T](bytes: Array[Byte])(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]
  17. def fromJValue[T](jvalue: JValue)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

    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]

    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]

    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]

    Decrypts using the key in config/xitrum.conf.

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

    base64String

    may contain optional padding ("=" characters)

  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toBase64(any: Any): String
  30. def toBytes(any: Any): Array[Byte]
  31. def toJValue(scalaObject: AnyRef): JValue

    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

    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

    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

    Encrypts using the key in config/xitrum.conf.

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

    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
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped