@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.buffer.ByteBuf,Object> |
byteBufToObjectConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,Object> |
fileUploadToObjectConverter() |
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.FileUpload,Object> fileUploadToObjectConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,Object> byteBufToObjectConverter()