@Override protected Map<String, Object> executeImpl(WebScriptRequest req, Status status) { // extract web script package String packagePath = req.getExtensionPath(); if (packagePath == null || packagePath.length() == 0) { packagePath = "/"; } if (!packagePath.startsWith("/")) { packagePath = "/" + packagePath; } // locate web script package Path path = getContainer().getRegistry().getPackage(packagePath); if (path == null) { throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script Package '" + packagePath + "' not found"); } Map<String, Object> model = new HashMap<String, Object>(7, 1.0f); model.put("package", path); return model; }
Path path = registry.getPackage(packagePath); if (path == null)
if (statusTemplate == null) Path path = this.container.getRegistry().getPackage(PathImpl.concatPath("/", getDescription().getScriptPath())); statusTemplate = getPackageStatusTemplate(path, statusCode, format); if (statusTemplate == null)
if (statusTemplate == null) Path path = this.container.getRegistry().getPackage(PathImpl.concatPath("/", getDescription().getScriptPath())); statusTemplate = getPackageStatusTemplate(path, statusCode, format); if (statusTemplate == null)
if (statusTemplate == null) Path path = this.container.getRegistry().getPackage(PathImpl.concatPath("/", getDescription().getScriptPath())); statusTemplate = getPackageStatusTemplate(path, statusCode, format); if (statusTemplate == null)
@Override protected Map<String, Object> executeImpl(WebScriptRequest req, Status status) { Map<String, Object> model = new HashMap<String, Object>(7, 1.0f); model.put("webscripts", getContainer().getRegistry().getWebScripts()); model.put("failures", getContainer().getRegistry().getFailures()); model.put("rooturl", getContainer().getRegistry().getUri("/")); model.put("rootpackage", getContainer().getRegistry().getPackage("/")); model.put("rootfamily", getContainer().getRegistry().getFamily("/")); model.put("rootlifecycle", getContainer().getRegistry().getLifecycle("/")); return model; }
@Override protected Map<String, Object> executeImpl(WebScriptRequest req, Status status) { Map<String, Object> model = new HashMap<String, Object>(7, 1.0f); model.put("webscripts", getContainer().getRegistry().getWebScripts()); model.put("failures", getContainer().getRegistry().getFailures()); model.put("rooturl", getContainer().getRegistry().getUri("/")); model.put("rootpackage", getContainer().getRegistry().getPackage("/")); model.put("rootfamily", getContainer().getRegistry().getFamily("/")); model.put("rootlifecycle", getContainer().getRegistry().getLifecycle("/")); return model; }
Path rootPackage = getContainer().getRegistry().getPackage("/"); Path filteredPackage = filterPath(null, rootPackage, packageFilter, urlFilter, familyFilter);