public class ConvertExternalResource2ImagesComponent extends AbstractConvertDocument2ImagesComponent
AbstractConvertDocument2ImagesComponent
for an external resourceModifier and Type | Field and Description |
---|---|
static String |
ROLE
Avalon ROLE.
|
_cocoonContext, _documentToImages, _resolver
Constructor and Description |
---|
ConvertExternalResource2ImagesComponent() |
Modifier and Type | Method and Description |
---|---|
private String |
_getCacheDirectory(String path,
String cacheDir) |
String |
doCache(Source resource,
String path,
String cacheDir,
String name)
Put the file in cache
|
cache, createImages, initialize, isMimeTypeSupported, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public ConvertExternalResource2ImagesComponent()
public String doCache(Source resource, String path, String cacheDir, String name) throws Exception
resource
- the resource to cachepath
- The resource pathcacheDir
- The cache directoryname
- The resource nameException
- if an error occurs while caching the fileprivate String _getCacheDirectory(String path, String cacheDir)