protected Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) { Map<String, String> templateVars = req.getServiceMatch().getTemplateVars(); WebScript webscript = req.getServiceMatch().getWebScript(); ResourceBundle webscriptRB = webscript.getResources(); .... }
/** * Gets the template form of this path * * @return template form of path */ public String getTemplate() { return req.getServiceMatch().getTemplate(); }
/** * Gets the template form of this path * * @return template form of path */ public String getTemplate() { return req.getServiceMatch().getTemplate(); }
/** * Gets the values of template variables * * @return map of value indexed by variable name (or the empty map) */ public Map<String, String> getTemplateArgs() { Map<String, String> args = req.getServiceMatch().getTemplateVars(); return (args == null) ? emptyArgs : args; } }
/** * Gets the template form of this path * * @return template form of path */ public String getTemplate() { return req.getServiceMatch().getTemplate(); }
/** * Gets the values of template variables * * @return map of value indexed by variable name (or the empty map) */ public Map<String, String> getTemplateArgs() { Map<String, String> args = req.getServiceMatch().getTemplateVars(); return (args == null) ? emptyArgs : args; } }
/** * Gets the values of template variables * * @return map of value indexed by variable name (or the empty map) */ public Map<String, String> getTemplateArgs() { Map<String, String> args = req.getServiceMatch().getTemplateVars(); return (args == null) ? emptyArgs : args; } }
/** * Gets the matching service path * * e.g. * a) service registered path = /search/engine * b) request path = /search/engine/external * * => /search/engine * * @return matching path */ public String getMatch() { return req.getServiceMatch().getPath(); }
/** * Gets the matching service path * * e.g. * a) service registered path = /search/engine * b) request path = /search/engine/external * * => /search/engine * * @return matching path */ public String getMatch() { return req.getServiceMatch().getPath(); }
/** * Gets the matching service path * * e.g. * a) service registered path = /search/engine * b) request path = /search/engine/external * * => /search/engine * * @return matching path */ public String getMatch() { return req.getServiceMatch().getPath(); }
params.put("webscript", req.getServiceMatch().getWebScript().getDescription()); params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat())); params.put("args", createArgs(req));
params.put("webscript", req.getServiceMatch().getWebScript().getDescription()); params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat())); params.put("args", createArgs(req));
params.put("webscript", req.getServiceMatch().getWebScript().getDescription()); params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat())); params.put("args", createArgs(req));
params.put("webscript", req.getServiceMatch().getWebScript().getDescription()); params.put("format", new FormatModel(container.getFormatRegistry(), req.getFormat())); params.put("args", createArgs(req));
@Override protected void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth) throws IOException { // Set Portlet title based on Web Script WebScript script = scriptReq.getServiceMatch().getWebScript(); Description desc = script.getDescription(); res.setTitle(desc.getShortName()); // Note: Do not render script if portlet window is minimized if (!WindowState.MINIMIZED.equals(req.getWindowState())) { super.executeScript(scriptReq, scriptRes, auth); } }
@Override protected void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth) throws IOException { // Set Portlet title based on Web Script WebScript script = scriptReq.getServiceMatch().getWebScript(); Description desc = script.getDescription(); res.setTitle(desc.getShortName()); // Note: Do not render script if portlet window is minimized if (!WindowState.MINIMIZED.equals(req.getWindowState())) { super.executeScript(scriptReq, scriptRes, auth); } }
@Override protected void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth) throws IOException { // Set Portlet title based on Web Script WebScript script = scriptReq.getServiceMatch().getWebScript(); Description desc = script.getDescription(); res.setTitle(desc.getShortName()); // Note: Do not render script if portlet window is minimized if (!WindowState.MINIMIZED.equals(req.getWindowState())) { super.executeScript(scriptReq, scriptRes, auth); } }
public void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth) throws IOException { // Handle authentication of scripts on a case-by-case basis. // Currently we assume that if a webscript servlet has any authenticator // applied then it must be for some kind of remote user auth as supplied. WebScript script = scriptReq.getServiceMatch().getWebScript(); script.setURLModelFactory(getUrlModelFactory()); Description desc = script.getDescription(); RequiredAuthentication required = desc.getRequiredAuthentication(); if (auth == null || RequiredAuthentication.none == required || auth.authenticate(required, false)) { script.execute(scriptReq, scriptRes); } }
public void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth) throws IOException { // Handle authentication of scripts on a case-by-case basis. // Currently we assume that if a webscript servlet has any authenticator // applied then it must be for some kind of remote user auth as supplied. WebScript script = scriptReq.getServiceMatch().getWebScript(); script.setURLModelFactory(getUrlModelFactory()); Description desc = script.getDescription(); RequiredAuthentication required = desc.getRequiredAuthentication(); if (auth == null || RequiredAuthentication.none == required || auth.authenticate(required, false)) { script.execute(scriptReq, scriptRes); } }
public void executeScript(WebScriptRequest scriptReq, WebScriptResponse scriptRes, Authenticator auth) throws IOException { // Handle authentication of scripts on a case-by-case basis. // Currently we assume that if a webscript servlet has any authenticator // applied then it must be for some kind of remote user auth as supplied. WebScript script = scriptReq.getServiceMatch().getWebScript(); script.setURLModelFactory(getUrlModelFactory()); Description desc = script.getDescription(); RequiredAuthentication required = desc.getRequiredAuthentication(); if (auth == null || RequiredAuthentication.none == required || auth.authenticate(required, false)) { script.execute(scriptReq, scriptRes); } }