Class TextCodec
java.lang.Object
ch.raffael.meldioc.library.http.server.undertow.codec.TextCodec
- All Implemented Interfaces:
HttpDecoder<String>,HttpEncoder<CharSequence>
Simple string codecs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.raffael.meldioc.library.http.server.undertow.codec.HttpDecoder
HttpDecoder.Consumer<B>, HttpDecoder.IgnoreBodyDecoder<B> -
Constructor Summary
ConstructorsConstructorDescriptionTextCodec(ch.raffael.meldioc.library.codec.ContentType contentType) TextCodec(ch.raffael.meldioc.library.codec.ContentType inputContentType, ch.raffael.meldioc.library.codec.ContentType outputContentType) TextCodec(ch.raffael.meldioc.library.codec.ContentType contentType, Charset inCharset, Charset outCharset) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(io.undertow.server.HttpServerExchange exchange, HttpDecoder.Consumer<? super String> consumer) voidencode(io.undertow.server.HttpServerExchange exchange, CharSequence value) static TextCodechtml()static TextCodecstatic TextCodecstatic TextCodecjson()static TextCodecstatic TextCodecstatic TextCodecstatic TextCodecxhtml()static TextCodecstatic TextCodecstatic TextCodecxml()static TextCodecstatic TextCodec
-
Constructor Details
-
TextCodec
public TextCodec(ch.raffael.meldioc.library.codec.ContentType inputContentType, ch.raffael.meldioc.library.codec.ContentType outputContentType) -
TextCodec
public TextCodec(ch.raffael.meldioc.library.codec.ContentType contentType) -
TextCodec
-
TextCodec
-
-
Method Details
-
plainText
-
plainText
-
plainText
-
html
-
html
-
html
-
xml
-
xml
-
xml
-
xhtml
-
xhtml
-
xhtml
-
json
-
encode
- Specified by:
encodein interfaceHttpEncoder<CharSequence>
-
decode
public void decode(io.undertow.server.HttpServerExchange exchange, HttpDecoder.Consumer<? super String> consumer) - Specified by:
decodein interfaceHttpDecoder<String>
-