@Singleton @Internal public class NettyConverters extends Object implements TypeConverterRegistrar
Constructor and Description |
---|
NettyConverters(ConversionService<?> conversionService,
BeanProvider<MediaTypeCodecRegistry> decoderRegistryProvider,
ChannelOptionFactory channelOptionFactory)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TypeConverter<io.netty.handler.codec.http.multipart.Attribute,CompletedPart> |
attributeToCompletedPartConverter() |
protected TypeConverter<byte[],io.netty.buffer.ByteBuf> |
byteArrayToByteBuffTypeConverter() |
protected TypeConverter<io.netty.buffer.ByteBuf,CharSequence> |
byteBufCharSequenceTypeConverter() |
protected TypeConverter<io.netty.buffer.ByteBuf,byte[]> |
byteBufToArrayTypeConverter() |
protected TypeConverter<io.netty.buffer.ByteBuf,Object> |
byteBufToObjectConverter() |
protected TypeConverter<io.netty.buffer.CompositeByteBuf,CharSequence> |
compositeByteBufCharSequenceTypeConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,CompletedFileUpload> |
fileUploadToCompletedFileUploadConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,Object> |
fileUploadToObjectConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.HttpData,byte[]> |
httpDataToByteArrayConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.HttpData,CharSequence> |
httpDataToStringConverter() |
void |
register(ConversionService<?> conversionService)
Interface for registrars of
TypeConverter instances. |
public NettyConverters(ConversionService<?> conversionService, BeanProvider<MediaTypeCodecRegistry> decoderRegistryProvider, ChannelOptionFactory channelOptionFactory)
conversionService
- The conversion servicedecoderRegistryProvider
- The decoder registry providerchannelOptionFactory
- The decoder channel option factorypublic void register(ConversionService<?> conversionService)
TypeConverterRegistrar
TypeConverter
instances.register
in interface TypeConverterRegistrar
conversionService
- The ConversionService
protected TypeConverter<io.netty.handler.codec.http.multipart.HttpData,CharSequence> httpDataToStringConverter()
protected TypeConverter<io.netty.handler.codec.http.multipart.HttpData,byte[]> httpDataToByteArrayConverter()
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,CompletedFileUpload> fileUploadToCompletedFileUploadConverter()
protected TypeConverter<io.netty.handler.codec.http.multipart.Attribute,CompletedPart> attributeToCompletedPartConverter()
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,Object> fileUploadToObjectConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,Object> byteBufToObjectConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,CharSequence> byteBufCharSequenceTypeConverter()
protected TypeConverter<io.netty.buffer.CompositeByteBuf,CharSequence> compositeByteBufCharSequenceTypeConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,byte[]> byteBufToArrayTypeConverter()
protected TypeConverter<byte[],io.netty.buffer.ByteBuf> byteArrayToByteBuffTypeConverter()