| net.homeip.donaldm.httpdbase4j.Templatable
All known Subclasses: net.homeip.donaldm.httpdbase4j.FileStringTemplateHandler, net.homeip.donaldm.httpdbase4j.TemplatableAdapter, net.homeip.donaldm.httpdbase4j.ArchiveStringTemplateHandler, net.homeip.donaldm.httpdbase4j.StringTemplateHandler,
Templatable | public interface Templatable (Code) | | An interface that must be implemented by template populating class
used by StringTemplateHandler.
See Also: StringTemplateHandler author: Donald Munro |
Method Summary | |
public File | templateFile(StringTemplate template, Request request, StringBuffer mimeType, File dir) Called by the StringTemplateHandler to populate a file based template.
Parameters: template - The StringTemplate instance Parameters: request - The Request instance. Parameters: mimeType - Return the mime type of the generated content in this.parameter. | public InputStream | templateStream(StringTemplate template, Request request, StringBuffer mimeType) Called by the StringTemplateHandler to populate a stream based template.
Parameters: template - The StringTemplate instance Parameters: request - The Request instance. Parameters: mimeType - Return the mime type of the generated content in this. | public String | templateString(StringTemplate template, Request request, StringBuffer mimeType) Called by the StringTemplateHandler to populate a string based template.
Parameters: template - The StringTemplate instance Parameters: request - The Request instance. Parameters: mimeType - Return the mime type of the generated content in this. |
templateFile | public File templateFile(StringTemplate template, Request request, StringBuffer mimeType, File dir)(Code) | | Called by the StringTemplateHandler to populate a file based template.
Parameters: template - The StringTemplate instance Parameters: request - The Request instance. Parameters: mimeType - Return the mime type of the generated content in this.parameter. NOTE: Can be null so check to avoid Exceptions Parameters: dir - Directory in which to create return file. Can be null A temporary file of the contents of the template output or null. |
templateStream | public InputStream templateStream(StringTemplate template, Request request, StringBuffer mimeType)(Code) | | Called by the StringTemplateHandler to populate a stream based template.
Parameters: template - The StringTemplate instance Parameters: request - The Request instance. Parameters: mimeType - Return the mime type of the generated content in this. parameter. NOTE: Can be null so check to avoid Exceptions A temporary file of the contents of the template output or null. |
templateString | public String templateString(StringTemplate template, Request request, StringBuffer mimeType)(Code) | | Called by the StringTemplateHandler to populate a string based template.
Parameters: template - The StringTemplate instance Parameters: request - The Request instance. Parameters: mimeType - Return the mime type of the generated content in this. parameter. NOTE: Can be null so check to avoid Exceptions A temporary file of the contents of the template output or null. |
|
|