vertx-lang-scala-docs_2.12 3.8.0 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package web
  Definition Classes
    ext
-  package codec
  Definition Classes
    web
- BodyCodec

o

io.vertx.scala.ext.web.codec

# BodyCodec 

###
Companion class BodyCodec

#### object BodyCodec

Linear Supertypes
AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. BodyCodec
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.  def apply[T](asJava: ext.web.codec.BodyCodec[_])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): BodyCodec[T]
5.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
6.  def buffer(): BodyCodec[Buffer]

   returns

     the Buffer codec

7.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
8.  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

9.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
10.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
11.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
12.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
13.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
14.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
15.  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

16.  def jsonArray(): BodyCodec[JsonArray]

    returns

      the JsonArray codec

17.  def jsonObject(): BodyCodec[JsonObject]

    returns

      the JsonObject codec

18.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
19.  def none(): BodyCodec[Unit]

    returns

      a codec that simply discards the response

20.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
21.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
22.  def pipe(stream: WriteStream[Buffer], close: Boolean): 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 stream

    close

      whether the destination stream should be closed

    returns

      the body codec for a write stream

23.  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.

    Same as pipe(stream, true). * @param stream the destination tream

    returns

      the body codec for a write stream

24.  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

25.  def string(): BodyCodec[String]

    returns

      the UTF-8 string codec

26.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
27.  def toString(): String
    Definition Classes
      AnyRef → Any
28.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
29.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
30.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped