public class Util extends Object
Modifier and Type | Method and Description |
---|---|
static <T> String |
convertObjectToXml(T object,
Class<T> clazz,
String functionName) |
static <T> Object |
extractObject(String queryString,
Class<T> c) |
static APIResult |
getApiResult(javax.ws.rs.core.Response response) |
static Marshaller |
getMarshaller(Class clazz) |
static <T> Object |
getObject(String queryString,
Class<T> c) |
static Properties |
getPropertiesObj(String filename) |
static String |
getProperty(String property) |
static String |
runRemoteCommand(String command) |
static HashMap<String,String> |
stringListToMap(String paramList) |
static HashMap<String,String> |
stringListToMap(StringList stringList) |
static void |
writeFile(String fileName,
String str) |
public static Properties getPropertiesObj(String filename)
public static String runRemoteCommand(String command) throws com.jcraft.jsch.JSchException, IOException
com.jcraft.jsch.JSchException
IOException
public static APIResult getApiResult(javax.ws.rs.core.Response response)
public static <T> Object extractObject(String queryString, Class<T> c) throws InstantiationException, IllegalAccessException
public static <T> Object getObject(String queryString, Class<T> c) throws InstantiationException, IllegalAccessException
public static <T> String convertObjectToXml(T object, Class<T> clazz, String functionName) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
public static Marshaller getMarshaller(Class clazz)
public static HashMap<String,String> stringListToMap(StringList stringList)
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.