public enum SupportedParameterTypes extends java.lang.Enum<SupportedParameterTypes>
| Enum Constant and Description |
|---|
LOCALE |
PRINCIPAL |
SERVLET_REQUEST |
SERVLET_RESPONSE |
SESSION |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getSupportedClass() |
static boolean |
isSupported(java.lang.Class<?> clazz)
Checks if the class is a supported parameter type
|
static java.lang.Object |
resolveParameter(java.lang.Class<?> parameterType,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Locale locale) |
static SupportedParameterTypes |
valueOf(java.lang.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(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 java.lang.Class<?> getSupportedClass()
public static boolean isSupported(java.lang.Class<?> clazz)
clazz - public static java.lang.Object resolveParameter(java.lang.Class<?> parameterType,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Locale locale)
Copyright © 2010-2012. All Rights Reserved.