Requires that the annotated element be a valid IP. This annotation can optionally attempt to contact the IP to ensure accessibility
Javadoc Ref :
@IP
Input Types 1 |
CharSequence |
Output Types |
Same as input |
1Automatic conversion will take place if the provided input does not match any of the input classes, as described in the conversions part of the manual.
contactAddress |
Specifies whether to contact the provided IP address. If set to false, the address is only checked for correctness and not for reachability |
timeout |
Specifies the maximum amount of milliseconds to wait if contactAddress is set to true. |
message |
Literal message to use if validation fails. |
errorCode |
Error code to use if validation fails. |
messageKey |
Message key to use if validation fails. |
@Required
@IsURL
private String url;
@IsURL
private URL url1;
@IsURL(resolveHost=true)
private String urlHost;
@IsURL(contactHost=true,timeout=6000)
private String reachableHost;
@IsURL(validProtocols={"https"})
private String secureHost;
@IsURL(fetchURL=true,timeout=6000)
private String reliableSource;