/** * Gets the Service Extension Path * * e.g. * a) service registered path = /search/engine * b) request path = /search/engine/external * * => /external * * @return extension path */ public String getExtension() { return req.getExtensionPath(); }
/** * Gets the Service Extension Path * * e.g. * a) service registered path = /search/engine * b) request path = /search/engine/external * * => /external * * @return extension path */ public String getExtension() { return req.getExtensionPath(); }
/** * Gets the Service Extension Path * * e.g. * a) service registered path = /search/engine * b) request path = /search/engine/external * * => /external * * @return extension path */ public String getExtension() { return req.getExtensionPath(); }
@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) { // 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().getLifecycle(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("lifecycle", path); return model; }
@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; }
@Override protected Map<String, Object> executeImpl(WebScriptRequest req, Status status) { // extract web script package String familyPath = req.getExtensionPath(); if (familyPath == null || familyPath.length() == 0) { familyPath = "/"; } if (!familyPath.startsWith("/")) { familyPath = "/" + familyPath; } // locate web script package Path path = getContainer().getRegistry().getFamily(familyPath); if (path == null) { throw new WebScriptException(Status.STATUS_NOT_FOUND, "Web Script Family '" + familyPath + "' not found"); } Map<String, Object> model = new HashMap<String, Object>(7, 1.0f); model.put("family", path); return model; }
String scriptId = req.getExtensionPath(); if (scriptId == null || scriptId.length() == 0)
public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException String scriptId = req.getExtensionPath(); if (scriptId == null || scriptId.length() == 0)