Class ServletConfigFileLoader
- java.lang.Object
-
- org.mapfish.print.servlet.fileloader.AbstractFileConfigFileLoader
-
- org.mapfish.print.servlet.fileloader.ServletConfigFileLoader
-
- All Implemented Interfaces:
ConfigFileLoaderPlugin
public final class ServletConfigFileLoader extends AbstractFileConfigFileLoader
A plugin that loads the config resources from urls starting with prefix: "servlet"://.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PREFIX
static int
PREFIX_LENGTH
-
Constructor Summary
Constructors Constructor Description ServletConfigFileLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getUriScheme()
Returns the URI scheme that this loader supports.protected java.util.Iterator<java.io.File>
resolveFiles(java.net.URI fileURI)
Load the files referenced by the id (in the case of a classpath uri it could references several files, although normally it will only reference one).void
setServletContext(javax.servlet.ServletContext servletContext)
-
Methods inherited from class org.mapfish.print.servlet.fileloader.AbstractFileConfigFileLoader
isAccessible, isAccessible, lastModified, loadFile, loadFile, platformIndependentUriToFile, toFile, toFile
-
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
PREFIX_LENGTH
public static final int PREFIX_LENGTH
-
-
Method Detail
-
resolveFiles
protected java.util.Iterator<java.io.File> resolveFiles(java.net.URI fileURI)
Description copied from class:AbstractFileConfigFileLoader
Load the files referenced by the id (in the case of a classpath uri it could references several files, although normally it will only reference one).- Specified by:
resolveFiles
in classAbstractFileConfigFileLoader
- Parameters:
fileURI
- the uri identifying the config file.
-
getUriScheme
public java.lang.String getUriScheme()
Description copied from interface:ConfigFileLoaderPlugin
Returns the URI scheme that this loader supports.
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
-
-