public final class HostnameAttribute extends AbstractFormatAttribute
host-name format attribute.
Important note: the basis for host name format validation is RFC 1034. The RFC does not
require that a host name have more than one domain name component. As
such, foo is a valid hostname.
Guava's InternetDomainName is used for validation.
| Modifier and Type | Method and Description |
|---|---|
static FormatAttribute |
getInstance() |
void |
validate(ProcessingReport report,
ValidationData data)
Validate the instance against this format attribute
|
newMsg, supportedTypespublic static FormatAttribute getInstance()
public void validate(ProcessingReport report, ValidationData data) throws ProcessingException
FormatAttributereport - the report to usedata - the validation dataProcessingException - an exception occurs (normally, never for a
format attribute)Copyright © 2013. All Rights Reserved.