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