object Entity
Provides factory for Entity
.
- Alphabetic
- By Inheritance
- Entity
- 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 clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def empty: Entity
Returns empty
Entity
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromBytes(bytes: Array[Byte]): Entity
Creates
Entity
from supplied bytes. - def fromFile(file: File): Entity
Creates
Entity
with data from supplied file. - def fromInputStream(in: InputStream): Entity
Creates
Entity
with bytes from supplied input stream. - def fromMultipart(multipart: Multipart, boundary: String): Entity
Creates
Entity
from multipart form data using supplied boundary. - def fromOutputStream(writer: (OutputStream) => Unit): Entity
Creates
Entity
from bytes written to output stream. - def fromParams(params: (String, String)*): Entity
Creates
Entity
from supplied parameters.Creates
Entity
from supplied parameters.The parameters are encoded as
application/x-www-form-urlencoded
. - def fromParams(params: Map[String, Seq[String]]): Entity
Creates
Entity
from supplied parameters.Creates
Entity
from supplied parameters.The parameters are encoded as
application/x-www-form-urlencoded
. - def fromQuery(query: QueryString): Entity
Creates
Entity
from query.Creates
Entity
from query.The query is encoded as
application/x-www-form-urlencoded
. - def fromString(s: String, charset: String = "UTF-8"): Entity
Creates
Entity
from string using specified character encoding. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()