Annotation Type ValidHost
@Documented
@Retention(RUNTIME)
@Target({FIELD,PARAMETER})
@Constraint(ValidHostValidator.class)
public @interface ValidHost
Indicates that a plugin attribute must be a valid host. This relies on the same validation rules as
InetAddress.getByName(String)
.- Since:
- 2.8
-
Optional Element Summary
-
Element Details
-
message
String messageThe message to be logged if this constraint is violated. This should normally be overridden.- Default:
- "The hostname is invalid"
-