@ParametersAreNonnullByDefault public enum KeyPart extends java.lang.Enum<KeyPart> implements KeyProvider
| Enum Constant and Description |
|---|
ANY
The 'any' key will be the first of:
authenticated principle (Dropwizard auth)
X-Forwarded-For Header IP address
servlet remote address IP
|
AUTHENTICATED
The 'authenticated' key will be the authenticated principle (Dropwizard auth).
|
IP
The 'ip' key will be the IP (X-Forwarded-For Header or servlet remote address).
|
RESOURCE_NAME
The 'resource' key will be the of the resource name.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<java.lang.CharSequence> |
combineKeysParts(java.lang.CharSequence groupKeyPrefix,
java.util.List<KeyProvider> keyParts,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.container.ResourceInfo resource,
javax.ws.rs.core.SecurityContext securityContext) |
static KeyPart |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcreatepublic static final KeyPart ANY
public static final KeyPart AUTHENTICATED
public static final KeyPart IP
public static final KeyPart RESOURCE_NAME
public static KeyPart[] values()
for (KeyPart c : KeyPart.values()) System.out.println(c);
public static KeyPart valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.util.Optional<java.lang.CharSequence> combineKeysParts(java.lang.CharSequence groupKeyPrefix,
java.util.List<KeyProvider> keyParts,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.container.ResourceInfo resource,
javax.ws.rs.core.SecurityContext securityContext)