|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.cache.FileRetrieverParameters
public final class FileRetrieverParameters
Parameter class for creating new FileRetriever objects. This is a convenience class for passing parameters to a file retriever to configure the retriever. Any additional parameters can be added to this parameter class without having to alter the method signature of the retriever itself.
This is an immutable class. Calls to any of the withXXX()
methods return a new object.
Method Summary | |
---|---|
java.io.File |
getDirectoryRoot()
Get the directory root for this parameter object. |
java.lang.String |
getEncoding()
Get the character encoding for this parameter object. |
java.lang.String |
getFilenameSuffix()
Get the filename suffix for this parameter object. |
TemplateRegistry |
getRegistry()
Get the template registry for this parameter object. |
static FileRetrieverParameters |
newInstance()
Create a new instances of the FileRetrieverParameters class. |
static FileRetrieverParameters |
newInstance(java.io.File directoryRoot)
Create a new instances of the FileRetrieverParameters class, with the given directory root, and a default TemplateRegistry. |
static FileRetrieverParameters |
newInstance(java.lang.String directoryRoot)
Create a new instances of the FileRetrieverParameters class, with the given directory root, and a default TemplateRegistry. |
FileRetrieverParameters |
withDirectoryRoot(java.io.File directoryRoot)
Return a new FileRetrieverParameters object with the given directory root in place of the existing directory root. |
FileRetrieverParameters |
withDirectoryRoot(java.lang.String directoryRoot)
Return a new FileRetrieverParameters object with the given directory root in place of the existing directory root. |
FileRetrieverParameters |
withEncoding(java.lang.String encoding)
Return a new FileRetrieverParameters object with the given character encoding in place of the existing character encoding. |
FileRetrieverParameters |
withFilenameSuffix(java.lang.String filenameSuffix)
Return a new FileRetrieverParameters object with the given filename suffix in place of the existing filename suffix. |
FileRetrieverParameters |
withRegistry(TemplateRegistry registry)
Return a new FileRetrieverParameters object with the given template registry in place of the existing template registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FileRetrieverParameters newInstance()
public static FileRetrieverParameters newInstance(java.io.File directoryRoot)
directoryRoot
- the root directory containing files to be retrieved
public static FileRetrieverParameters newInstance(java.lang.String directoryRoot)
directoryRoot
- the root directory containing files to be retrieved
public FileRetrieverParameters withDirectoryRoot(java.io.File directoryRoot)
directoryRoot
- the directory root to use in place of the existing
directory root
public FileRetrieverParameters withDirectoryRoot(java.lang.String directoryRoot)
directoryRoot
- the directory root to use in place of the existing
directory root
public FileRetrieverParameters withFilenameSuffix(java.lang.String filenameSuffix)
filenameSuffix
- the filename suffix to use in place of the existing
filename suffix
public FileRetrieverParameters withEncoding(java.lang.String encoding)
encoding
- the character encoding to use in place of the existing
character encoding
public FileRetrieverParameters withRegistry(TemplateRegistry registry)
registry
- the template registry to use in place of the existing
template registry
public java.io.File getDirectoryRoot()
public java.lang.String getFilenameSuffix()
public java.lang.String getEncoding()
public TemplateRegistry getRegistry()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |