@Test public void testisIntranetIp() { assertEquals(true, HttpUtil.isIntranetIp("127.0.0.1")); assertEquals(true, HttpUtil.isIntranetIp("192.168.1.30")); assertEquals(false, HttpUtil.isIntranetIp("122.193.111.154")); }
public static boolean isIntranetIp(HttpServletRequest request) { return isIntranetIp(getIpAddr(request)); }
HttpUtil { public static boolean isIntranetIp(HttpServletRequest request) { return isIntranetIp(getIpAddr(request)); } }
HttpUtil { public static boolean isIntranetIp(HttpServletRequest request) { return isIntranetIp(getIpAddr(request)); }  }
HttpUtil { public static boolean isIntranetIp(HttpServletRequest request) { return isIntranetIp(getIpAddr(request)); }  static String getIpAddr(HttpServletRequest request); static boolean isIntranetIp(HttpServletRequest request); static boolean isIntranetIp(String ip); static String getExternalIP(HttpServletRequest request); }
HttpUtil { public static boolean isIntranetIp(HttpServletRequest request) { return isIntranetIp(getIpAddr(request)); }  static String getIpAddr(HttpServletRequest request); static boolean isIntranetIp(HttpServletRequest request); static boolean isIntranetIp(String ip); static String getExternalIP(HttpServletRequest request);  }