public enum SupportedParameterTypes extends Enum<SupportedParameterTypes>
| 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 SupportedParameterTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupportedParameterTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedParameterTypes SERVLET_REQUEST
public static final SupportedParameterTypes SERVLET_RESPONSE
public static final SupportedParameterTypes SESSION
public static final SupportedParameterTypes LOCALE
public static final SupportedParameterTypes PRINCIPAL
public static SupportedParameterTypes[] values()
for (SupportedParameterTypes c : SupportedParameterTypes.values()) System.out.println(c);
public static SupportedParameterTypes 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.