@Test public void testGetHandlerPath() { assertNull(getHandlerPath(null)); assertEquals("", getHandlerPath("")); assertEquals("/path/to/endpoint", getHandlerPath("/path/to/endpoint")); assertEquals(" assertEquals("/path/to/endpoint", getHandlerPath("/path/to/endpoint?")); assertEquals("/path/to/endpoint", getHandlerPath("/path/to/endpoint?bar=123&baz=435")); }
public static String getHandlerPath(String uri) { if (uri == null || uri.length() == 0 || !uri.contains("?")) { return uri; } else { return uri.substring(0, uri.indexOf("?")); } }
ContainerUtils { public static String getHandlerPath(String uri) { if (uri == null || uri.length() == 0 || !uri.contains("?")) { return uri; } else { return uri.substring(0, uri.indexOf("?")); } } }
ContainerUtils { public static String getHandlerPath(String uri) { if (uri == null || uri.length() == 0 || !uri.contains("?")) { return uri; } else { return uri.substring(0, uri.indexOf("?")); } }  }
ContainerUtils { public static String getHandlerPath(String uri) { if (uri == null || uri.length() == 0 || !uri.contains("?")) { return uri; } else { return uri.substring(0, uri.indexOf("?")); } }  static String encodeUnsafeCharacters(final String originalQueryString); static String reduceLeadingSlashes(final String path); static String getHandlerPath(String uri); }
ContainerUtils { public static String getHandlerPath(String uri) { if (uri == null || uri.length() == 0 || !uri.contains("?")) { return uri; } else { return uri.substring(0, uri.indexOf("?")); } }  static String encodeUnsafeCharacters(final String originalQueryString); static String reduceLeadingSlashes(final String path); static String getHandlerPath(String uri);  }