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.JSchException
IOException
public static APIResult getApiResult(javax.ws.rs.core.Response response)
public static <T> Object extractObject(String queryString, Class<T> c) throws IllegalAccessException
IllegalAccessException
public static <T> Object getObject(String queryString, Class<T> c) throws IllegalAccessException
IllegalAccessException
public 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
Exception
public static void changeConfig(HashMap<String,String> map, String remotePath) throws Exception
Exception
public 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.JSchException
com.jcraft.jsch.SftpException
public static void changeConfig(String remotePath) throws com.jcraft.jsch.JSchException, com.jcraft.jsch.SftpException
com.jcraft.jsch.JSchException
com.jcraft.jsch.SftpException
public 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
IOException
public static Document getDocument(String xmlContent) throws ParserConfigurationException, SAXException, IOException
public static String modifyDate(String dateString, String format, int calenderIntervalUnit, int diff) throws ParseException
ParseException
public static XMLGregorianCalendar getGregorianCalendar(String date, String format) throws ParseException, DatatypeConfigurationException
public static XMLGregorianCalendar getGregorianCalendar(String date) throws ParseException, DatatypeConfigurationException
public static String getDateStringFromGregorainCalender(XMLGregorianCalendar xcal, String format)
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.