object BodyCodec
- Alphabetic
- By Inheritance
- BodyCodec
- 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
- def apply[T](asJava: ext.web.codec.BodyCodec[_])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): BodyCodec[T]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buffer(): BodyCodec[Buffer]
- returns
the Buffer codec
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
create[T](decode: (Buffer) ⇒ T)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): BodyCodec[T]
Create a codec that buffers the entire body and then apply the
decode
function and returns the result.Create a codec that buffers the entire body and then apply the
decode
function and returns the result. * @param decode the decode function- returns
the created codec
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
json[U](type: Class[U])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[U]): BodyCodec[U]
Create and return a codec for Java objects encoded using Jackson mapper.
Create and return a codec for Java objects encoded using Jackson mapper. * @return a codec for mapping POJO to Json
-
def
jsonArray(): BodyCodec[JsonArray]
- returns
the JsonArray codec
-
def
jsonObject(): BodyCodec[JsonObject]
- returns
the JsonObject codec
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
none(): BodyCodec[Unit]
- returns
a codec that simply discards the response
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pipe(stream: WriteStream[Buffer]): BodyCodec[Unit]
A body codec that pipes the body to a write stream.
A body codec that pipes the body to a write stream. * @param stream the destination tream
- returns
the body codec for a write stream
-
def
string(encoding: String): BodyCodec[String]
A codec for strings using a specific
encoding
.A codec for strings using a specific
encoding
. * @param encoding the encoding- returns
the codec
-
def
string(): BodyCodec[String]
- returns
the UTF-8 string codec
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )