public String[] getURIs() { return description.getURIs(); }
public String[] getURIs() { return description.getURIs(); }
/** * Register a Web Script URI * * @param script */ private void registerURIs(WebScript script) { Description desc = script.getDescription(); for (String uri : desc.getURIs()) { PathImpl path = uriByPath.get("/"); String[] parts = uri.split("/"); for (String part : parts) { if (part.indexOf("?") != -1) { part = part.substring(0, part.indexOf("?")); } PathImpl subpath = uriByPath.get(PathImpl.concatPath(path.getPath(), part)); if (subpath == null) { subpath = path.createChildPath(part); uriByPath.put(subpath.getPath(), subpath); } path = subpath; } path.addScript(script); } }
/** * Register a Web Script URI * * @param script WebScript */ private void registerURIs(WebScript script) { Description desc = script.getDescription(); for (String uri : desc.getURIs()) { PathImpl path = uriByPath.get("/"); String[] parts = uri.split("/"); for (String part : parts) { if (part.indexOf("?") != -1) { part = part.substring(0, part.indexOf("?")); } PathImpl subpath = uriByPath.get(PathImpl.concatPath(path.getPath(), part)); if (subpath == null) { subpath = path.createChildPath(part); uriByPath.put(subpath.getPath(), subpath); } path = subpath; } path.addScript(script); } }
/** * Register a Web Script URI * * @param script WebScript */ private void registerURIs(WebScript script) { Description desc = script.getDescription(); for (String uri : desc.getURIs()) { PathImpl path = uriByPath.get("/"); String[] parts = uri.split("/"); for (String part : parts) { if (part.indexOf("?") != -1) { part = part.substring(0, part.indexOf("?")); } PathImpl subpath = uriByPath.get(PathImpl.concatPath(path.getPath(), part)); if (subpath == null) { subpath = path.createChildPath(part); uriByPath.put(subpath.getPath(), subpath); } path = subpath; } path.addScript(script); } }
String[] uris = script.getDescription().getURIs(); for (String uri : uris)