Module io.inverno.mod.boot
Package io.inverno.mod.boot.converter
Class TextByteBufMediaTypeConverter
java.lang.Object
io.inverno.mod.base.converter.ByteBufConverter
io.inverno.mod.boot.converter.TextByteBufMediaTypeConverter
- All Implemented Interfaces:
Converter<ByteBuf,
,Object> Decoder<ByteBuf,
,Object> Encoder<Object,
,ByteBuf> JoinableEncoder<Object,
,ByteBuf> JoinablePrimitiveEncoder<ByteBuf>
,MediaTypeConverter<ByteBuf>
,ObjectConverter<ByteBuf>
,PrimitiveDecoder<ByteBuf>
,PrimitiveEncoder<ByteBuf>
,ReactiveConverter<ByteBuf,
,Object> ReactiveDecoder<ByteBuf,
,Object> ReactiveEncoder<Object,
,ByteBuf> SplittableDecoder<ByteBuf,
,Object> SplittablePrimitiveDecoder<ByteBuf>
public class TextByteBufMediaTypeConverter
extends ByteBufConverter
implements MediaTypeConverter<ByteBuf>
ByteBuf text/plain
media type converter.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
Fields inherited from class io.inverno.mod.base.converter.ByteBufConverter
DEFAULT_ARRAY_LIST_SEPARATOR
-
Constructor Summary
ConstructorDescriptionTextByteBufMediaTypeConverter
(ObjectConverter<String> stringConverter) Creates atext/plain
media type converter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(String mediaType) Determines whether the converter can convert the specified media type.Methods inherited from class io.inverno.mod.base.converter.ByteBufConverter
decode, decode, decodeBigDecimal, decodeBigInteger, decodeBoolean, decodeByte, decodeCharacter, decodeClass, decodeCurrency, decodeDouble, decodeFile, decodeFloat, decodeInetAddress, decodeInetSocketAddress, decodeInteger, decodeLocalDate, decodeLocalDateTime, decodeLocale, decodeLong, decodeMany, decodeMany, decodeOne, decodeOne, decodePath, decodePattern, decodeShort, decodeString, decodeToArray, decodeToArray, decodeToList, decodeToList, decodeToSet, decodeToSet, decodeURI, decodeURL, decodeZonedDateTime, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encodeArray, encodeArray, encodeArray, encodeList, encodeList, encodeList, encodeMany, encodeMany, encodeMany, encodeOne, encodeOne, encodeOne, encodeSet, encodeSet, encodeSet, getArrayListSeparator, getCharset, setArrayListSeparator, setCharset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.base.converter.ReactiveDecoder
decodeMany, decodeMany, decodeOne, decodeOne
Methods inherited from interface io.inverno.mod.base.converter.ReactiveEncoder
encodeMany, encodeMany, encodeMany, encodeOne, encodeOne, encodeOne
-
Constructor Details
-
TextByteBufMediaTypeConverter
Creates a
text/plain
media type converter.- Parameters:
stringConverter
- the underlying String converter
-
-
Method Details
-
canConvert
Description copied from interface:MediaTypeConverter
Determines whether the converter can convert the specified media type.
- Specified by:
canConvert
in interfaceMediaTypeConverter<ByteBuf>
- Parameters:
mediaType
- a media type- Returns:
- true if the converter can convert the media type, false otherwise
-