@RequestScoped public class OgnlParametersProvider extends java.lang.Object implements ParametersProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
OgnlParametersProvider.Parameter |
Constructor and Description |
---|
OgnlParametersProvider(ParameterNameProvider provider,
javax.servlet.http.HttpServletRequest request,
Container container,
OgnlFacade ognl) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convert(java.lang.Class clazz,
java.lang.String value,
java.util.ResourceBundle bundle) |
protected java.lang.Object |
createArray(java.lang.Class clazz,
java.lang.String[] values,
java.util.ResourceBundle bundle) |
protected java.util.List |
createList(java.lang.reflect.Type type,
java.util.ResourceBundle bundle,
java.lang.String[] values) |
protected java.lang.Object |
createParameter(OgnlParametersProvider.Parameter param,
java.util.Map<java.lang.String,java.lang.String[]> requestNames,
java.util.ResourceBundle bundle,
java.util.List<Message> errors) |
protected java.lang.Object |
createRoot(OgnlParametersProvider.Parameter param,
java.util.Map<java.lang.String,java.lang.String[]> requestNames,
java.util.ResourceBundle bundle,
java.util.List<Message> errors) |
protected java.lang.Object |
createSimpleParameter(OgnlParametersProvider.Parameter param,
java.lang.String[] values,
java.util.ResourceBundle bundle) |
protected java.lang.Class |
getActualType(java.lang.reflect.Type type) |
java.lang.Object[] |
getParametersFor(ResourceMethod method,
java.util.List<Message> errors,
java.util.ResourceBundle bundle) |
protected java.util.Map<java.lang.String,java.lang.String[]> |
parametersThatStartWith(java.lang.String name) |
protected void |
setProperty(java.lang.String name,
java.lang.String key,
java.lang.String[] values,
java.util.List<Message> errors) |
public OgnlParametersProvider(ParameterNameProvider provider, javax.servlet.http.HttpServletRequest request, Container container, OgnlFacade ognl)
public java.lang.Object[] getParametersFor(ResourceMethod method, java.util.List<Message> errors, java.util.ResourceBundle bundle)
getParametersFor
in interface ParametersProvider
protected java.lang.Object createParameter(OgnlParametersProvider.Parameter param, java.util.Map<java.lang.String,java.lang.String[]> requestNames, java.util.ResourceBundle bundle, java.util.List<Message> errors)
protected java.lang.Object createRoot(OgnlParametersProvider.Parameter param, java.util.Map<java.lang.String,java.lang.String[]> requestNames, java.util.ResourceBundle bundle, java.util.List<Message> errors)
protected void setProperty(java.lang.String name, java.lang.String key, java.lang.String[] values, java.util.List<Message> errors)
protected java.lang.Object createSimpleParameter(OgnlParametersProvider.Parameter param, java.lang.String[] values, java.util.ResourceBundle bundle)
protected java.lang.Object convert(java.lang.Class clazz, java.lang.String value, java.util.ResourceBundle bundle)
protected java.util.List createList(java.lang.reflect.Type type, java.util.ResourceBundle bundle, java.lang.String[] values)
protected java.lang.Object createArray(java.lang.Class clazz, java.lang.String[] values, java.util.ResourceBundle bundle)
protected java.lang.Class getActualType(java.lang.reflect.Type type)
protected java.util.Map<java.lang.String,java.lang.String[]> parametersThatStartWith(java.lang.String name)
Copyright © 2013 Caelum. All Rights Reserved.