@Override public void reset() { super.reset(); // called early when WSF initialises - can safely ignore until we have a WF app context if (getApplicationContext() != null) { this.getScriptProcessorRegistry().reset(); this.getTemplateProcessorRegistry().reset(); } }
public StatusTemplate getStatusTemplate() { int statusCode = we.getStatus(); String format = req.getFormat(); String scriptId = getDescription().getId(); return AbstractWebScript.this.getStatusTemplate(scriptId, statusCode, (format == null) ? "" : format); } });
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }
public String[] getScriptDocumentPaths(WebScript script) { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPathsByRegEx("/", scriptPaths, false); }
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }
public String[] getScriptDocumentPaths(WebScript script) { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("", false, scriptPaths); }
/** * 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; } }
/** * @see freemarker.cache.TemplateLoader#findTemplateSource(java.lang.String) */ public Object findTemplateSource(String name) throws IOException { ClassPathTemplateSource source = null; if (hasDocument(name)) { source = new ClassPathTemplateSource(name); } return source; }
/** * @see freemarker.cache.TemplateLoader#findTemplateSource(java.lang.String) */ public Object findTemplateSource(String name) throws IOException { WebApplicationStoreTemplateSource source = null; if (hasDocument(name)) { source = new WebApplicationStoreTemplateSource(name); } return source; }
/** * Execute custom Java logic * * @param req Web Script request * @param status Web Script status * @return custom service model * @deprecated */ protected Map<String, Object> executeImpl(WebScriptRequest req, Status status) { return executeImpl(req, new WebScriptStatus(status)); }
public StatusTemplate getStatusTemplate() { int statusCode = we.getStatus(); String format = req.getFormat(); String scriptId = getDescription().getId(); return AbstractWebScript.this.getStatusTemplate(scriptId, statusCode, (format == null) ? "" : format); } });
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }
@Override public void reset() { super.reset(); // called early when WSF initialises - can safely ignore until we have a WF app context if (getApplicationContext() != null) { this.getScriptProcessorRegistry().reset(); this.getTemplateProcessorRegistry().reset(); } }
public String[] getScriptDocumentPaths(WebScript script) { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPathsByRegEx("/", scriptPaths, false); }
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }
public String[] getScriptDocumentPaths(WebScript script) { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("", false, scriptPaths); }
/** * @see freemarker.cache.TemplateLoader#findTemplateSource(java.lang.String) */ public Object findTemplateSource(String name) throws IOException { ClassPathTemplateSource source = null; if (hasDocument(name)) { source = new ClassPathTemplateSource(name); } return source; }
public StatusTemplate getStatusTemplate() { int statusCode = we.getStatus(); String format = req.getFormat(); String scriptId = getDescription().getId(); return AbstractWebScript.this.getStatusTemplate(scriptId, statusCode, (format == null) ? "" : format); } });
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }