public String getId() { return description.getId(); }
public String getId() { return description.getId(); }
/** * Associate Web Script with Path * * @param script WebScript */ public void addScript(WebScript script) { scripts.put(script.getDescription().getId(), script); }
/** * Associate Web Script with Path * * @param script WebScript */ public void addScript(WebScript script) { scripts.put(script.getDescription().getId(), script); }
/** * Associate Web Script with Path * * @param script */ public void addScript(WebScript script) { scripts.put(script.getDescription().getId(), script); }
/** * Render a template (of given format) to the Web Script Response * * @param format template format (null, default format) * @param model data model to render * @param writer where to output */ final protected void renderFormatTemplate(String format, Map<String, Object> model, Writer writer) { format = (format == null) ? "" : format; String templatePath = getDescription().getId() + "." + format; if (logger.isDebugEnabled()) logger.debug("Rendering template '" + templatePath + "'"); renderTemplate(templatePath, model, writer); }
/** * Render a template (of given format) to the Web Script Response * * @param format template format (null, default format) * @param model data model to render * @param writer where to output */ final protected void renderFormatTemplate(String format, Map<String, Object> model, Writer writer) { format = (format == null) ? "" : format; String templatePath = getDescription().getId() + "." + format; if (logger.isDebugEnabled()) logger.debug("Rendering template '" + templatePath + "'"); renderTemplate(templatePath, model, writer); }
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 getDocumentPathsByRegEx("/", scriptPaths, false); }
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }
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); }
public String[] getScriptDocumentPaths(WebScript script) { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("", false, scriptPaths); }
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); }
public String[] getScriptDocumentPaths(WebScript script) throws IOException { String scriptPaths = script.getDescription().getId() + ".*"; return getDocumentPaths("/", false, scriptPaths); }
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 StatusTemplate getStatusTemplate() { int statusCode = we.getStatus(); String format = req.getFormat(); String scriptId = getDescription().getId(); return AbstractWebScript.this.getStatusTemplate(scriptId, statusCode, (format == null) ? "" : format); } });
public StatusTemplate getStatusTemplate() { int statusCode = we.getStatus(); String format = req.getFormat(); String scriptId = getDescription().getId(); return AbstractWebScript.this.getStatusTemplate(scriptId, statusCode, (format == null) ? "" : format); } });