@Test public void testURLValidator() { assertEquals(Utils.isValidURL("https: assertEquals(Utils.isValidURL("invalid.url_forTest"), false); }
public static Boolean isValidURL(String url) { try { new URL(url); return true; } catch (MalformedURLException e) { return false; } }
Utils { public static Boolean isValidURL(String url) { try { new URL(url); return true; } catch (MalformedURLException e) { return false; } } }
Utils { public static Boolean isValidURL(String url) { try { new URL(url); return true; } catch (MalformedURLException e) { return false; } }  }
Utils { public static Boolean isValidURL(String url) { try { new URL(url); return true; } catch (MalformedURLException e) { return false; } }  static synchronized EPServiceProvider initEPService(ServletContext sc); static synchronized void destroyEPService(ServletContext sc); static Map<String, Object> JSONObject2Map(JSONObject jo); static JSONObject Event2JSONObject(EventBean event); static JSONObject Statement2JSONObject(EPStatement st); static boolean DoHTTPPost(String urlStr, String content); static void putCorrelatorAndTrans(HttpServletRequest req); static String getBodyAsString(HttpServletRequest request); static void setTimerRuleHeaders(JSONObject rule); static Boolean isValidURL(String url); }
Utils { public static Boolean isValidURL(String url) { try { new URL(url); return true; } catch (MalformedURLException e) { return false; } }  static synchronized EPServiceProvider initEPService(ServletContext sc); static synchronized void destroyEPService(ServletContext sc); static Map<String, Object> JSONObject2Map(JSONObject jo); static JSONObject Event2JSONObject(EventBean event); static JSONObject Statement2JSONObject(EPStatement st); static boolean DoHTTPPost(String urlStr, String content); static void putCorrelatorAndTrans(HttpServletRequest req); static String getBodyAsString(HttpServletRequest request); static void setTimerRuleHeaders(JSONObject rule); static Boolean isValidURL(String url);  }