private String resolveRelativePath(String parentUri, String relativePath) { // can not use `new URI(uri).resolve(path)`, because that doesn't work with "jar:file:x!y" kind of URIs String base = UrlUtils.getStem(parentUri); return base + '/' + relativePath; }
private String resolveRelativePath(String parentUri, String relativePath) { // can not use `new URI(uri).resolve(path)`, because that doesn't work with "jar:file:x!y" kind of URIs String base = UrlUtils.getStem(parentUri); return base + '/' + relativePath; }
@Override public boolean isRecognizedQuery(String baseUri, String ctx, EndpointInfo endpointInfo, boolean contextMatchExact) { if (baseUri != null && (baseUri.contains("?") && (baseUri.toLowerCase().contains("wsdl") || baseUri.toLowerCase().contains("xsd=")))) { int idx = baseUri.indexOf("?"); Map<String, String> map = UrlUtils.parseQueryString(baseUri.substring(idx + 1)); if (map.containsKey("wsdl") || map.containsKey("xsd")) { if (contextMatchExact) { return endpointInfo.getAddress().contains(ctx); } else { // contextMatchStrategy will be "stem" return endpointInfo.getAddress(). contains(UrlUtils.getStem(baseUri.substring(0, idx))); } } } return false; }