Class BeanSupport
- java.lang.Object
-
- org.apache.activemq.artemis.utils.uri.BeanSupport
-
public class BeanSupport extends Object
-
-
Constructor Summary
Constructors Constructor Description BeanSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <P> PcopyData(P source, P target)static voidcustomise(org.apache.commons.beanutils.BeanUtilsBean bean)static StringdecodeURI(String value)static StringencodeURI(String value)static StringgetData(List<String> ignored, Object... beans)static <P> PropertiesgetProperties(P bean, Properties properties)static voidregisterConverter(org.apache.commons.beanutils.Converter converter, Class type)static voidsetData(URI uri, HashMap<String,Object> properties, Set<String> allowableProperties, Map<String,String> query, Map<String,Object> extraProps)static <P> PsetData(URI uri, P obj, Map<String,String> query)static <P> PsetData(P obj, Map<String,Object> data)static <P> PsetProperties(P bean, Properties properties)static <T> voidstripPasswords(Map<String,T> properties)
-
-
-
Method Detail
-
registerConverter
public static void registerConverter(org.apache.commons.beanutils.Converter converter, Class type)
-
customise
public static void customise(org.apache.commons.beanutils.BeanUtilsBean bean)
-
setData
public static <P> P setData(URI uri, P obj, Map<String,String> query) throws Exception
- Throws:
Exception
-
setData
public static <P> P setData(P obj, Map<String,Object> data) throws Exception- Throws:
Exception
-
setProperties
public static <P> P setProperties(P bean, Properties properties) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException
-
getProperties
public static <P> Properties getProperties(P bean, Properties properties) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException
-
setData
public static void setData(URI uri, HashMap<String,Object> properties, Set<String> allowableProperties, Map<String,String> query, Map<String,Object> extraProps)
-
getData
public static String getData(List<String> ignored, Object... beans) throws Exception
- Throws:
Exception
-
decodeURI
public static String decodeURI(String value) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
encodeURI
public static String encodeURI(String value) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-