@Test public void testEmptyCompositeWithParenthesisInParam() throws Exception { URI uri = new URI("failover: CompositeData data = URISupport.parseComposite(uri); assertEquals(0, data.getComponents().size()); assertEquals(1, data.getParameters().size()); assertTrue(data.getParameters().containsKey("updateURIsURL")); assertEquals("file:/C:/Dir(1)/a.csv", data.getParameters().get("updateURIsURL")); }
public static CompositeData parseComposite(URI uri) throws URISyntaxException { CompositeData rc = new CompositeData(); rc.scheme = uri.getScheme(); String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " try { parseComposite(uri, rc, ssp); } catch (Exception e) { throw new URISyntaxException(uri.toString(), e.getMessage()); } rc.fragment = uri.getFragment(); return rc; }
URISupport { public static CompositeData parseComposite(URI uri) throws URISyntaxException { CompositeData rc = new CompositeData(); rc.scheme = uri.getScheme(); String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " try { parseComposite(uri, rc, ssp); } catch (Exception e) { throw new URISyntaxException(uri.toString(), e.getMessage()); } rc.fragment = uri.getFragment(); return rc; } }
URISupport { public static CompositeData parseComposite(URI uri) throws URISyntaxException { CompositeData rc = new CompositeData(); rc.scheme = uri.getScheme(); String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " try { parseComposite(uri, rc, ssp); } catch (Exception e) { throw new URISyntaxException(uri.toString(), e.getMessage()); } rc.fragment = uri.getFragment(); return rc; }  }
URISupport { public static CompositeData parseComposite(URI uri) throws URISyntaxException { CompositeData rc = new CompositeData(); rc.scheme = uri.getScheme(); String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " try { parseComposite(uri, rc, ssp); } catch (Exception e) { throw new URISyntaxException(uri.toString(), e.getMessage()); } rc.fragment = uri.getFragment(); return rc; }  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 CompositeData parseComposite(URI uri) throws URISyntaxException { CompositeData rc = new CompositeData(); rc.scheme = uri.getScheme(); String ssp = PropertyUtil.stripPrefix(uri.getRawSchemeSpecificPart().trim(), " try { parseComposite(uri, rc, ssp); } catch (Exception e) { throw new URISyntaxException(uri.toString(), e.getMessage()); } rc.fragment = uri.getFragment(); return rc; }  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);  }