@Override protected Map<String, Object> executeImpl(WebScriptRequest req, Status status) { // extract web script package String uriPath = req.getExtensionPath(); if (uriPath == null || uriPath.length() == 0) { uriPath = "/"; } if (!uriPath.startsWith("/")) { uriPath = "/" + uriPath; } // locate web script package Path path = getContainer().getRegistry().getUri(uriPath); if (path == null) { throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script URI '" + uriPath + "' not found"); } Map<String, Object> model = new HashMap<String, Object>(7, 1.0f); model.put("uri", path); 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; }
@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; }