Interface InboundDataDecoder<A>

Type Parameters:
A - the type of the decoded object
All Superinterfaces:
InboundData<A>

public interface InboundDataDecoder<A> extends InboundData<A>

A request payload consumer used to decode the payload to a single object or many objects.

Implementors should rely on a MediaTypeConverter to decode a raw payload as a publisher of ByteBuf to a publisher of decoded objects.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Decodes the payload into many objects.
    one()
    Decodes the payload into one single object.

    Methods inherited from interface io.inverno.mod.http.base.InboundData

    stream
  • Method Details

    • one

      Mono<A> one()

      Decodes the payload into one single object.

      Returns:
      a mono emitting the decoded object
    • many

      Flux<A> many()

      Decodes the payload into many objects.

      Returns:
      a flux emitting the decoded objects