Examples of IPv4Restriction


Examples of de.innovationgate.utils.net.IPv4Restriction

    @Override
    public void validate(String value, Locale locale, ValidationContext cx) throws OptionValueValidationException {
       
        try {
            IPv4Restriction restriction = IPv4Restriction.parseRestrictionString(value);
        }
        catch (Exception e) {
            throw new OptionValueValidationException("No valid restriction string: " + value + ". Use single IP address to specify host, \"IP-IP\" to specify range and \"IP/Netmask\" to specify network");
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.