public final class URLConverter extends AbstractConverter<URL>
Converter
implementation for the
java.net.URL
type.Modifier and Type | Field and Description |
---|---|
static URLConverter |
DEFAULT
URLConverter single instance. |
Modifier and Type | Method and Description |
---|---|
protected <T> URL |
doDecode(String value,
ValidationContext<T> context)
Converts URL string into
java.net.URL object. |
Class<URL> |
getType()
Returns
java.net.URL type. |
decode, doEncode, encode
appendMessageArguments, getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments, getMessageTemplate
public static final URLConverter DEFAULT
URLConverter
single instance.protected <T> URL doDecode(String value, ValidationContext<T> context)
java.net.URL
object.doDecode
in class AbstractConverter<URL>
T
- The type of validated entity.value
- URL string.context
- Validation context.java.net.URL
object.MalformedValueException
- if the specified string could not be
parsed as an URL reference.Copyright © 2011–2020 FoxLabs. All rights reserved.