Class IpAddressValidator

  • All Implemented Interfaces:
    Validator

    public class IpAddressValidator
    extends AbstractSingleValueValidator
    A validator implementation that checks the supplied value is a valid ip address or host name. This validator also verifies the supplied port, if INCLUDES_PORT is set to true. If the INCLUDES_PORT is not specified, the validator uses the default value.
    • Field Detail

      • INCLUDES_PORT

        public static final String INCLUDES_PORT
        Parameter which when supplied, specifies the if the ip address supplied can include a port. If this value is not supplied, the validator defaults to a allowing the port to be included.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IpAddressValidator

        public IpAddressValidator​(MultiMap parameters)
        Constructor.
        Parameters:
        parameters - parameters