public enum SupportedParameters extends Enum<SupportedParameters>
| Enum Constant and Description |
|---|
LOCALE |
PRINCIPAL |
SERVLET_REQUEST |
SERVLET_RESPONSE |
SESSION |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getSupportedClass() |
static boolean |
isSupported(Class<?> clazz)
Checks if the class is a supported parameter type.
|
static Object |
resolveParameter(Class<?> parameterType,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Locale locale) |
static SupportedParameters |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedParameters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedParameters SERVLET_REQUEST
public static final SupportedParameters SERVLET_RESPONSE
public static final SupportedParameters SESSION
public static final SupportedParameters LOCALE
public static final SupportedParameters PRINCIPAL
public static SupportedParameters[] values()
for (SupportedParameters c : SupportedParameters.values()) System.out.println(c);
public static SupportedParameters valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic Class<?> getSupportedClass()
public static boolean isSupported(Class<?> clazz)
clazz - Copyright © 2010-2012. All Rights Reserved.