Enum Class IsInRestrictionLists
- All Implemented Interfaces:
Serializable,Comparable<IsInRestrictionLists>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGiven URL matches an allowed pattern (in allowed list).Invalid URI provided.There are not any restrictions found for given URL.Given URL matches a prohibited pattern (in prohibiting list). -
Method Summary
Modifier and TypeMethodDescriptionstatic IsInRestrictionListsReturns the enum constant of this class with the specified name.static IsInRestrictionLists[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
Invalid URI provided. -
NONE
There are not any restrictions found for given URL. -
ALLOWED
Given URL matches an allowed pattern (in allowed list). -
PROHIBITED
Given URL matches a prohibited pattern (in prohibiting list).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-