Class ClasspathUrlFilePlugin
java.lang.Object
io.wcm.devops.conga.generator.plugins.urlfile.ClasspathUrlFilePlugin
- All Implemented Interfaces:
Plugin,UrlFilePlugin
Copy file from classpath.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(String url, UrlFilePluginContext context) Checks if the plugin can be applied to the given URL.getFile(String url, UrlFilePluginContext context) Get binary data of external file.getFileName(String url, UrlFilePluginContext context) Get filename for external file.getFileUrl(String url, UrlFilePluginContext context) Get URL to external file.getName()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.wcm.devops.conga.generator.spi.UrlFilePlugin
deleteFile, getFileUrlsWithDependencies, getLocalFile, isLocalFile
-
Field Details
-
NAME
Plugin name- See Also:
-
-
Constructor Details
-
ClasspathUrlFilePlugin
public ClasspathUrlFilePlugin()
-
-
Method Details
-
getName
-
accepts
Description copied from interface:UrlFilePluginChecks if the plugin can be applied to the given URL.- Specified by:
acceptsin interfaceUrlFilePlugin- Parameters:
url- URL string (including prefix)context- Context objects- Returns:
- true when the plugin can be applied to the given URL.
-
getFileName
Description copied from interface:UrlFilePluginGet filename for external file.- Specified by:
getFileNamein interfaceUrlFilePlugin- Parameters:
url- URL string (including prefix)context- Context objects- Returns:
- Filename
-
getFile
Description copied from interface:UrlFilePluginGet binary data of external file.- Specified by:
getFilein interfaceUrlFilePlugin- Parameters:
url- URL string (including prefix)context- Context objects- Returns:
- Binary data
- Throws:
IOException- If the access to the file failed
-
getFileUrl
Description copied from interface:UrlFilePluginGet URL to external file.- Specified by:
getFileUrlin interfaceUrlFilePlugin- Parameters:
url- URL string (including prefix)context- Context objects- Returns:
- URL to file
- Throws:
IOException- If the access to the file failed
-