Interface HttpDecoder<B>

All Known Implementing Classes:
BinaryCodec, BinaryCodec.ByteArray, BinaryCodec.ByteBuffer, BinaryCodec.ByteBufferArray, HttpDecoder.IgnoreBodyDecoder, TextCodec

public interface HttpDecoder<B>
Read the HTTP request body data to a Java object.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.vavr.control.Option<String>
    contentType(io.undertow.util.HeaderMap headers)
     
    void
    decode(io.undertow.server.HttpServerExchange exchange, HttpDecoder.Consumer<? super B> consumer)
     
    static <B> HttpDecoder<B>
    wrapBuffered(ch.raffael.meldioc.library.codec.ObjectDecoder<? extends B> decoder)
     
  • Method Details

    • decode

      void decode(io.undertow.server.HttpServerExchange exchange, HttpDecoder.Consumer<? super B> consumer) throws Exception
      Throws:
      Exception
    • wrapBuffered

      static <B> HttpDecoder<B> wrapBuffered(ch.raffael.meldioc.library.codec.ObjectDecoder<? extends B> decoder)
    • contentType

      static io.vavr.control.Option<String> contentType(io.undertow.util.HeaderMap headers)