xitrum.util

SeriDeseri

Related Doc: package util

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
Learn more about member selection
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 bytesFromUrlSafeBase64(base64String: String): Option[Array[Byte]]

    base64String

    may contain optional padding ("=" characters)

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

  8. 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

  9. def clone(): AnyRef

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

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

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

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

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

  15. def fromJson[T](json: JValue)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]

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

    Converts JSON 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

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

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

    Converts JSON 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

  17. 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

  18. 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.

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

    base64String

    may contain optional padding ("=" characters)

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

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

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

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

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

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

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

  29. def toJson(scalaObject: AnyRef): String

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

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

  30. 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

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

    Encrypts using the key in config/xitrum.conf.

  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. 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

  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped