Enum FromRqLine.RqPattern
- java.lang.Object
-
- java.lang.Enum<FromRqLine.RqPattern>
-
- com.artipie.management.api.artifactory.FromRqLine.RqPattern
-
- All Implemented Interfaces:
Serializable
,Comparable<FromRqLine.RqPattern>
- Enclosing class:
- FromRqLine
public static enum FromRqLine.RqPattern extends Enum<FromRqLine.RqPattern>
Request pattern for receiving value from the request line.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_REPO
Create repo pattern.REPO
Repo pattern.REPOS
Repos pattern.USER
Username pattern.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
pattern()
Get request pattern to get value.static FromRqLine.RqPattern
valueOf(String name)
Returns the enum constant of this type with the specified name.static FromRqLine.RqPattern[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final FromRqLine.RqPattern USER
Username pattern.
-
REPO
public static final FromRqLine.RqPattern REPO
Repo pattern.
-
REPOS
public static final FromRqLine.RqPattern REPOS
Repos pattern.
-
CREATE_REPO
public static final FromRqLine.RqPattern CREATE_REPO
Create repo pattern.
-
-
Method Detail
-
values
public static FromRqLine.RqPattern[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FromRqLine.RqPattern c : FromRqLine.RqPattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FromRqLine.RqPattern valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
pattern
public Pattern pattern()
Get request pattern to get value.- Returns:
- Request line pattern to get value.
-
-