HttpConverterRegistrar
@Deprecated public class SocketAddressConverter extends java.lang.Object implements TypeConverter<java.lang.CharSequence,java.net.SocketAddress>
Constructor and Description |
---|
SocketAddressConverter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.net.SocketAddress> |
convert(java.lang.CharSequence object,
java.lang.Class<java.net.SocketAddress> targetType,
ConversionContext context)
Deprecated.
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, of
public java.util.Optional<java.net.SocketAddress> convert(java.lang.CharSequence object, java.lang.Class<java.net.SocketAddress> targetType, ConversionContext context)
TypeConverter
Optional.empty()
in case the object is not convertible by catching any necessary exceptions and failing gracefully.convert
in interface TypeConverter<java.lang.CharSequence,java.net.SocketAddress>
object
- The object typetargetType
- The target type being converted tocontext
- The ConversionContext