public class Util extends Object
public static Properties getPropertiesObj(String filename)
public static String runRemoteCommand(String command) throws com.jcraft.jsch.JSchException, IOException
com.jcraft.jsch.JSchExceptionIOExceptionpublic static APIResult getApiResult(javax.ws.rs.core.Response response)
public static <T> Object extractObject(String queryString, Class<T> c) throws IllegalAccessException
IllegalAccessExceptionpublic static <T> Object getObject(String queryString, Class<T> c) throws IllegalAccessException
IllegalAccessExceptionpublic static <T> String convertObjectToXml(T object, Class<T> clazz, String functionName) throws SecurityException, NoSuchMethodException, InvocationTargetException, IllegalAccessException
public static Marshaller getMarshaller(Class clazz)
public static HashMap<String,String> stringListToMap(StringList stringList)
public static HashMap<String,String> stringListToMap(String paramList) throws Exception
Exceptionpublic static void changeConfig(HashMap<String,String> map, String remotePath) throws Exception
Exceptionpublic static final void prettyPrint(Document xml) throws TransformerFactoryConfigurationError, TransformerException
public static void remoteFile(String function, String remotePath, String localPath) throws com.jcraft.jsch.JSchException, com.jcraft.jsch.SftpException
com.jcraft.jsch.JSchExceptioncom.jcraft.jsch.SftpExceptionpublic static void changeConfig(String remotePath) throws com.jcraft.jsch.JSchException, com.jcraft.jsch.SftpException
com.jcraft.jsch.JSchExceptioncom.jcraft.jsch.SftpExceptionpublic static Map<String,String> mapFromXProperties(XProperties xProperties)
public static XProperties xPropertiesFromMap(Map<String,String> map)
public static XMLGregorianCalendar getXMLGregorianCalendar(Date d)
public static String getMapredJobPrority(String url, String jobId) throws IOException, IllegalAccessException, InstantiationException, ParserConfigurationException, SAXException
public static String sendHttpGetRequest(String url) throws IOException
IOExceptionpublic static Document getDocument(String xmlContent) throws ParserConfigurationException, SAXException, IOException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.