Enum Class IsInRestrictionLists

java.lang.Object
java.lang.Enum<IsInRestrictionLists>
com.sdl.delivery.security.uri.processor.IsInRestrictionLists
All Implemented Interfaces:
Serializable, Comparable<IsInRestrictionLists>, Constable

public enum IsInRestrictionLists extends Enum<IsInRestrictionLists>
Represents of result of verifying the URL. It might be in any state below. Note: if there are both allowed and prohibited pattern fit for URL it will be threatened as prohibited and an exception will be thrown.
  • Enum Constant Details

    • INVALID

      public static final IsInRestrictionLists INVALID
      Invalid URI provided.
    • NONE

      public static final IsInRestrictionLists NONE
      There are not any restrictions found for given URL.
    • ALLOWED

      public static final IsInRestrictionLists ALLOWED
      Given URL matches an allowed pattern (in allowed list).
    • PROHIBITED

      public static final IsInRestrictionLists PROHIBITED
      Given URL matches a prohibited pattern (in prohibiting list).
  • Method Details

    • values

      public static IsInRestrictionLists[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IsInRestrictionLists valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null