Class AbstractConstraint

java.lang.Object
com.github.damianwajser.validator.constraint.AbstractConstraint
Direct Known Subclasses:
NotEmptyConstraint

public abstract class AbstractConstraint
extends Object
  • Field Details

    • excludes

      protected org.springframework.http.HttpMethod[] excludes
  • Constructor Details

  • Method Details

    • applyConnstraint

      public abstract boolean applyConnstraint​(String field, javax.validation.ConstraintValidatorContext cxt)
    • getCurrentHttpRequest

      protected Optional<javax.servlet.http.HttpServletRequest> getCurrentHttpRequest()
    • getCurrentHttpMethod

      protected Optional<org.springframework.http.HttpMethod> getCurrentHttpMethod()
    • methodExclude

      protected boolean methodExclude​(org.springframework.http.HttpMethod[] excludes)
    • isValid

      public boolean isValid​(String field, javax.validation.ConstraintValidatorContext cxt)