PluginHelper { @ConfigDesc("request http get") @ParamDesc("String url, Map<String, String> paramMap") public void httpGet(String _url, Map<String, String> paramMap) { httpGet(_url, paramMap, 1000); } private  PluginHelper(); static PluginHelper getInstance(); @ConfigDesc("logging") void log(Object c); @ConfigDesc("System.out.println") void println(Object c); @ConfigDesc("url encoding") String urlEncode(String s); @ConfigDesc("url decoding") String urlDecode(String s); @ConfigDesc("make shorten url.") String toShortenUrl(String producerUrl, String urlToShortening); @ConfigDesc("get NumberFormatter set fraction 1") NumberFormat getNumberFormatter(); @ConfigDesc("get NumberFormatter set the fraction") @ParamDesc("int fractionDigits") NumberFormat getNumberFormatter(int fractionDigits); @ConfigDesc("format the number as fraction 1") String formatNumber(float f); @ConfigDesc("format the number as given fraction") @ParamDesc("float f, int fractionDigits") String formatNumber(float f, int fractionDigits); @ConfigDesc("format the number as fraction 1") String formatNumber(double v); @ConfigDesc("format the number as given fraction") @ParamDesc("double v, int fractionDigits") String formatNumber(double v, int fractionDigits); @ConfigDesc("format the number as fraction 1") String formatNumber(int v); @ConfigDesc("format the number as given fraction") @ParamDesc("int v, int fractionDigits") String formatNumber(int v, int fractionDigits); @ConfigDesc("format the number as fraction 1") String formatNumber(long v); @ConfigDesc("format the number as given fraction") @ParamDesc("long v, int fractionDigits") String formatNumber(long v, int fractionDigits); @ConfigDesc("alert as info level") @ParamDesc("int objHash, String objType, String title, String message") void alertInfo(int objHash, String objType, String title, String message); @ConfigDesc("alert as warn level") @ParamDesc("int objHash, String objType, String title, String message") void alertWarn(int objHash, String objType, String title, String message); @ConfigDesc("alert as error level") @ParamDesc("int objHash, String objType, String title, String message") void alertError(int objHash, String objType, String title, String message); @ConfigDesc("alert as fatal level") @ParamDesc("int objHash, String objType, String title, String message") void alertFatal(int objHash, String objType, String title, String message); @ConfigDesc("make hashMap easily") @ParamDesc("String[] keyValueArray") HashMap<String, String> toMap(String[] keyValueArray); @ConfigDesc("request http get") @ParamDesc("String url, Map<String, String> paramMap") void httpGet(String _url, Map<String, String> paramMap); @ConfigDesc("request http get") @ParamDesc("String url, Map<String, String> paramMap, int timeoutMillis") void httpGet(String _url, Map<String, String> paramMap, int timeoutMillis); @Internal String getParamsString(Map<String, String> params); @Internal void alert(byte level, int objHash, String objType, String title, String message); @Internal String getErrorString(int hash); @Internal String getErrorString(String yyyymmdd, int hash); @Internal String getApicallString(int hash); @Internal String getApicallString(String yyyymmdd, int hash); @Internal String getMethodString(int hash); @Internal String getMethodString(String yyyymmdd, int hash); @Internal String getServiceString(int hash); @Internal String getServiceString(String yyyymmdd, int hash); @Internal String getSqlString(int hash); @Internal String getSqlString(String yyyymmdd, int hash); @Internal String getObjectString(int hash); @Internal String getObjectString(String yyyymmdd, int hash); @Internal String getRefererString(int hash); @Internal String getRefererString(String yyyymmdd, int hash); @Internal String getUserAgentString(int hash); @Internal String getUserAgentString(String yyyymmdd, int hash); @Internal String getUserGroupString(int hash); @Internal String getUserGroupString(String yyyymmdd, int hash); @Internal String getCityString(int hash); @Internal String getCityString(String yyyymmdd, int hash); @Internal String getLoginString(int hash); @Internal String getLoginString(String yyyymmdd, int hash); @Internal String getDescString(int hash); @Internal String getDescString(String yyyymmdd, int hash); @Internal String getWebString(int hash); @Internal String getWebString(String yyyymmdd, int hash); @Internal String getHashMsgString(int hash); @Internal String getHashMsgString(String yyyymmdd, int hash); @Internal @ConfigDesc("reflection util") Object invokeMethod(Object o, String methodName); @Internal @ConfigDesc("reflection util") Object invokeMethod(Object o, String methodName, Object[] args); @Internal @ConfigDesc("reflection util") Object invokeMethod(Object o, String methodName, Class[] argTypes, Object[] args); @Internal @ConfigDesc("reflection util") Object newInstance(String className); @Internal @ConfigDesc("reflection util") Object newInstance(String className, ClassLoader loader); @Internal @ConfigDesc("reflection util") Object newInstance(String className, Object[] args); @Internal @ConfigDesc("reflection util") Object newInstance(String className, ClassLoader loader, Object[] args); @Internal @ConfigDesc("reflection util") Object newInstance(String className, ClassLoader loader, Class[] argTypes, Object[] args); @Internal @ConfigDesc("reflection util") Object getFieldValue(Object o, String fieldName); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1, Class class2); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1, Class class2, Class class3); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1, Class class2, Class class3, Class class4); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1, Class class2, Class class3, Class class4, Class class5); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1, Class class2, Class class3, Class class4, Class class5, Class class6); @Internal @ConfigDesc("reflection util") Class[] makeArgTypes(Class class0, Class class1, Class class2, Class class3, Class class4, Class class5, Class class6, Class class7); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1, Object object2); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1, Object object2, Object object3); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1, Object object2, Object object3, Object object4); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1, Object object2, Object object3, Object object4, Object object5); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1, Object object2, Object object3, Object object4, Object object5, Object object6); @Internal @ConfigDesc("reflection util") Object[] makeArgs(Object object0, Object object1, Object object2, Object object3, Object object4, Object object5, Object object6, Object object7); static synchronized List<PluginHelper.Desc> getPluginHelperDesc();  }
@Test public void httpGetTest() { Map<String, String> paramMap = new HashMap<String, String>(); paramMap.put("a", "1"); paramMap.put("b", "2"); pluginHelper.httpGet("http: }