java.lang.Object
org.gcube.accounting.datamodel.validations.validators.ValidIPValidator
All Implemented Interfaces:
org.gcube.documentstore.records.implementation.FieldAction

public class ValidIPValidator extends Object implements org.gcube.documentstore.records.implementation.FieldAction
Author:
Luca Frosini (ISTI - CNR)
  • Constructor Details

    • ValidIPValidator

      public ValidIPValidator()
  • Method Details

    • isIpAddress

      protected static boolean isIpAddress(String ipAddress)
    • validate

      public Serializable validate(String key, Serializable value, org.gcube.documentstore.records.Record record) throws org.gcube.documentstore.exception.InvalidValueException
      Specified by:
      validate in interface org.gcube.documentstore.records.implementation.FieldAction
      Throws:
      org.gcube.documentstore.exception.InvalidValueException