eu.emi.dsr.util
Class ServiceUtil
java.lang.Object
eu.emi.dsr.util.ServiceUtil
public class ServiceUtil
- extends Object
Utility class to (Un)Marshal the Service information
- Author:
- a.memon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceDateFormat
public static SimpleDateFormat ServiceDateFormat
ISODateFormat
public static SimpleDateFormat ISODateFormat
UTCISODateFormat
public static SimpleDateFormat UTCISODateFormat
ServiceUtil
public ServiceUtil()
isValidServiceInfo
public static boolean isValidServiceInfo(org.codehaus.jettison.json.JSONObject jo)
throws org.codehaus.jettison.json.JSONException
- Checks the service description being registered contains the mandatory
service attributes
- Parameters:
serviceDesc -
- Throws:
org.codehaus.jettison.json.JSONException
toUTCFormat
public static String toUTCFormat(Date d)
toUTCFormat
public static Date toUTCFormat(String d)
throws ParseException
- Throws:
ParseException
convertStreamToString
public static String convertStreamToString(InputStream is)
throws IOException
- Throws:
IOException
getAttributeNames
public static List<String> getAttributeNames()
initLogger
public static void initLogger(String path)
- Simultaneously initializing the log4j and log4j
- Parameters:
path -
Copyright © 2012. All Rights Reserved.