Interface HttpDecoder<C,B>
-
- All Known Implementing Classes:
TextCodec
public interface HttpDecoder<C,B>Read the HTTP request body data to a Java object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHttpDecoder.Consumer<C,B>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static io.vavr.control.Option<java.lang.String>contentType(io.undertow.util.HeaderMap headers)voiddecode(io.undertow.server.HttpServerExchange exchange, C ctx, HttpDecoder.Consumer<? super C,? super B> consumer)static <B> HttpDecoder<java.lang.Object,B>wrapBuffered(ch.raffael.meldioc.library.codec.ObjectDecoder<? extends B> decoder)
-
-
-
Method Detail
-
decode
void decode(io.undertow.server.HttpServerExchange exchange, C ctx, HttpDecoder.Consumer<? super C,? super B> consumer) throws java.lang.Exception- Throws:
java.lang.Exception
-
wrapBuffered
static <B> HttpDecoder<java.lang.Object,B> wrapBuffered(ch.raffael.meldioc.library.codec.ObjectDecoder<? extends B> decoder)
-
contentType
static io.vavr.control.Option<java.lang.String> contentType(io.undertow.util.HeaderMap headers)
-
-