object SeriDeseri
- Alphabetic
- By Inheritance
- SeriDeseri
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bytesFromBase64(base64String: String): Option[Array[Byte]]
- def bytesFromHex(hex: String): Option[Array[Byte]]
-
def
bytesFromUrlSafeBase64(base64String: String): Option[Array[Byte]]
- base64String
may contain optional padding ("=" characters)
- def bytesToBase64(bytes: Array[Byte]): String
-
def
bytesToHex(bytes: Array[Byte]): String
- returns
Lower case hexadecimal string
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromBase64[T](base64String: String)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]
- def fromBytes[T](bytes: Array[Byte])(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]
-
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
-
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
-
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
-
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.
-
def
fromUrlSafeBase64[T](base64String: String)(implicit e: DefaultsTo[T, String], m: Manifest[T]): Option[T]
- base64String
may contain optional padding ("=" characters)
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toBase64(any: Any): String
- def toBytes(any: Any): Array[Byte]
-
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.
-
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
-
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
-
def
toSecureUrlSafeBase64(any: Any, forCookie: Boolean = false): String
Encrypts using the key in config/xitrum.conf.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )