Fork me on GitHub

AbstractServletLoader

In package com.mitchellbosecke.pebble.loader

public abstract class AbstractServletLoader extends Object implements Loader

Abstract base class for loaders which user the servlet context to load templates.

Constructors

Parameters:
  • No parameters

Methods

protected abstract InputStream getResourceAsStream(String location)
Parameters:
  • String location
protected abstract URL getResource(String location)
Parameters:
  • String location
public Reader getReader(String templateName)
Parameters:
  • String templateName
public String getSuffix()
Parameters:
  • No parameters
public void setSuffix(String suffix)
Parameters:
  • String suffix
public String getPrefix()
Parameters:
  • No parameters
public void setPrefix(String prefix)
Parameters:
  • String prefix
public String getCharset()
Parameters:
  • No parameters
public void setCharset(String charset)
Parameters:
  • String charset
public String resolveRelativePath(String relativePath, String anchorPath)
Parameters:
  • String relativePath
  • String anchorPath
public String createCacheKey(String templateName)
Parameters:
  • String templateName
public boolean resourceExists(String templateName)
Parameters:
  • String templateName