Class StringToInetAddressConverter
java.lang.Object
io.micronaut.elasticsearch.convert.StringToInetAddressConverter
- All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<CharSequence,
InetAddress>
@Singleton
@Requires(classes=org.elasticsearch.client.RestClientBuilder.class)
public class StringToInetAddressConverter
extends Object
implements io.micronaut.core.convert.TypeConverter<CharSequence,InetAddress>
Converts String to
InetAddress
.- Since:
- 1.0.0
- Author:
- Puneet Behl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(CharSequence object, Class<InetAddress> targetType, io.micronaut.core.convert.ConversionContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.convert.TypeConverter
convert
-
Constructor Details
-
StringToInetAddressConverter
public StringToInetAddressConverter()
-
-
Method Details
-
convert
public Optional<InetAddress> convert(CharSequence object, Class<InetAddress> targetType, io.micronaut.core.convert.ConversionContext context) - Specified by:
convert
in interfaceio.micronaut.core.convert.TypeConverter<CharSequence,
InetAddress>
-