private HttpStaticTemplateResource getTemplateResource(String uriPath) {
return (HttpStaticTemplateResource) getResource(uriPath);
}
private void writeTemplateResourceToHttpResponse(IHttpResponse httpResponse, HttpStaticTemplateResource templateResource) {
ITemplate template = templateResource.getTemplate();
if (template instanceof WebFileTemplate) {
writeFileTemplateToHttpResponse(httpResponse, (WebFileTemplate) template);
} else if (template instanceof WebStringTemplate) {
writeWebStringTemplateToHttpResponse(httpResponse, (WebStringTemplate) template);