Package io.pebbletemplates.pebble.loader
Class ServletLoader
java.lang.Object
io.pebbletemplates.pebble.loader.AbstractServletLoader
io.pebbletemplates.pebble.loader.ServletLoader
Loader that uses a servlet context to find templates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URL
getResource
(String location) protected InputStream
getResourceAsStream
(String location) Methods inherited from class io.pebbletemplates.pebble.loader.AbstractServletLoader
createCacheKey, getCharset, getPrefix, getReader, getSuffix, resolveRelativePath, resourceExists, setCharset, setPrefix, setSuffix
-
Field Details
-
context
private final javax.servlet.ServletContext context
-
-
Constructor Details
-
ServletLoader
public ServletLoader(javax.servlet.ServletContext context)
-
-
Method Details
-
getResourceAsStream
- Specified by:
getResourceAsStream
in classAbstractServletLoader
-
getResource
- Specified by:
getResource
in classAbstractServletLoader
- Throws:
MalformedURLException
-