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 ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vavr.control.Option<String>contentType(io.undertow.util.HeaderMap headers) voiddecode(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
-