Class StringToHeaderConverter

java.lang.Object
io.micronaut.elasticsearch.convert.StringToHeaderConverter
All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<CharSequence,org.apache.http.Header>

@Singleton @Requires(classes=org.elasticsearch.client.RestClientBuilder.class) public class StringToHeaderConverter extends Object implements io.micronaut.core.convert.TypeConverter<CharSequence,org.apache.http.Header>
Converts String to Header.
Since:
1.0.0
Author:
Puneet Behl
  • Constructor Details

    • StringToHeaderConverter

      public StringToHeaderConverter()
  • Method Details

    • convert

      public Optional<org.apache.http.Header> convert(CharSequence object, Class<org.apache.http.Header> targetType, io.micronaut.core.convert.ConversionContext context)
      Specified by:
      convert in interface io.micronaut.core.convert.TypeConverter<CharSequence,org.apache.http.Header>