@Test public void testIsCompositeURINoQueryNoSlashes() throws URISyntaxException { URI[] compositeURIs = new URI[] { new URI("test:(part1: for (URI uri : compositeURIs) { assertTrue(uri + " must be detected as composite URI", URISupport.isCompositeURI(uri)); } }
public static boolean isCompositeURI(URI uri) { String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " if (ssp.indexOf('(') == 0 && checkParenthesis(ssp)) { return true; } return false; }
URISupport { public static boolean isCompositeURI(URI uri) { String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " if (ssp.indexOf('(') == 0 && checkParenthesis(ssp)) { return true; } return false; } }
URISupport { public static boolean isCompositeURI(URI uri) { String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " if (ssp.indexOf('(') == 0 && checkParenthesis(ssp)) { return true; } return false; }  }
URISupport { public static boolean isCompositeURI(URI uri) { String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " if (ssp.indexOf('(') == 0 && checkParenthesis(ssp)) { return true; } return false; }  static CompositeData parseComposite(URI uri); static boolean isCompositeURI(URI uri); static boolean checkParenthesis(String str); static int indexOfParenthesisMatch(String str, int first); static String[] splitComponents(String str); static URI removeQuery(URI uri); static Map<String, String> parseParameters(URI uri); static URI applyParameters(URI uri, Map<String, String> queryParameters); static URI applyParameters(URI uri, Map<String, String> queryParameters, String optionPrefix); }
URISupport { public static boolean isCompositeURI(URI uri) { String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " if (ssp.indexOf('(') == 0 && checkParenthesis(ssp)) { return true; } return false; }  static CompositeData parseComposite(URI uri); static boolean isCompositeURI(URI uri); static boolean checkParenthesis(String str); static int indexOfParenthesisMatch(String str, int first); static String[] splitComponents(String str); static URI removeQuery(URI uri); static Map<String, String> parseParameters(URI uri); static URI applyParameters(URI uri, Map<String, String> queryParameters); static URI applyParameters(URI uri, Map<String, String> queryParameters, String optionPrefix);  }