@Singleton @Internal public class NettyConverters extends java.lang.Object implements TypeConverterRegistrar
Constructor and Description |
---|
NettyConverters(ConversionService<?> conversionService,
javax.inject.Provider<MediaTypeCodecRegistry> decoderRegistryProvider,
ChannelOptionFactory channelOptionFactory)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected TypeConverter<byte[],io.netty.buffer.ByteBuf> |
byteArrayToByteBuffTypeConverter() |
protected TypeConverter<io.netty.buffer.ByteBuf,java.lang.CharSequence> |
byteBufCharSequenceTypeConverter() |
protected TypeConverter<io.netty.buffer.ByteBuf,byte[]> |
byteBufToArrayTypeConverter() |
protected TypeConverter<io.netty.buffer.ByteBuf,java.lang.Object> |
byteBufToObjectConverter() |
protected TypeConverter<io.netty.buffer.CompositeByteBuf,java.lang.CharSequence> |
compositeByteBufCharSequenceTypeConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,CompletedFileUpload> |
fileUploadToCompletedFileUploadConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.FileUpload,java.lang.Object> |
fileUploadToObjectConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.HttpData,byte[]> |
httpDataToByteArrayConverter() |
protected TypeConverter<io.netty.handler.codec.http.multipart.HttpData,java.lang.CharSequence> |
httpDataToStringConverter() |
void |
register(ConversionService<?> conversionService)
Interface for registrars of
TypeConverter instances. |
public NettyConverters(ConversionService<?> conversionService, javax.inject.Provider<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,java.lang.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.FileUpload,java.lang.Object> fileUploadToObjectConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,java.lang.Object> byteBufToObjectConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,java.lang.CharSequence> byteBufCharSequenceTypeConverter()
protected TypeConverter<io.netty.buffer.CompositeByteBuf,java.lang.CharSequence> compositeByteBufCharSequenceTypeConverter()
protected TypeConverter<io.netty.buffer.ByteBuf,byte[]> byteBufToArrayTypeConverter()
protected TypeConverter<byte[],io.netty.buffer.ByteBuf> byteArrayToByteBuffTypeConverter()