public class BeanSupport extends Object
| Constructor and Description |
|---|
BeanSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <P> P |
copyData(P source,
P target) |
static String |
decodeURI(String value) |
static String |
encodeURI(String value) |
static String |
getData(List<String> ignored,
Object... beans) |
static <P> Properties |
getProperties(P bean,
Properties properties) |
static void |
registerConverter(org.apache.commons.beanutils.Converter converter,
Class type) |
static <P> P |
setData(P obj,
Map<String,Object> data) |
static void |
setData(URI uri,
HashMap<String,Object> properties,
Set<String> allowableProperties,
Map<String,String> query,
Map<String,Object> extraProps) |
static <P> P |
setData(URI uri,
P obj,
Map<String,String> query) |
static <P> P |
setProperties(P bean,
Properties properties) |
static <T> void |
stripPasswords(Map<String,T> properties) |
public static void registerConverter(org.apache.commons.beanutils.Converter converter,
Class type)
public static <P> P setData(URI uri, P obj, Map<String,String> query) throws Exception
Exceptionpublic static <P> P setData(P obj,
Map<String,Object> data)
throws Exception
Exceptionpublic static <P> P setProperties(P bean,
Properties properties)
throws IllegalAccessException,
NoSuchMethodException,
InvocationTargetException
public static <P> Properties getProperties(P bean, Properties properties) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException
public static void setData(URI uri, HashMap<String,Object> properties, Set<String> allowableProperties, Map<String,String> query, Map<String,Object> extraProps)
public static String getData(List<String> ignored, Object... beans) throws Exception
Exceptionpublic static String decodeURI(String value) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String encodeURI(String value) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.