public class ConvertResource2ImagesComponent extends AbstractConvertDocument2ImagesComponent
AbstractConvertDocument2ImagesComponent
for a Resource
Modifier and Type | Field and Description |
---|---|
static String |
ROLE
Avalon ROLE.
|
_cocoonContext, _documentToImages, _resolver
Constructor and Description |
---|
ConvertResource2ImagesComponent() |
Modifier and Type | Method and Description |
---|---|
private String |
_getCacheDirectory(Resource resource,
String siteName) |
String |
doCache(Resource resource,
String siteName)
Put the file in cache
|
cache, createImages, initialize, isMimeTypeSupported, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public ConvertResource2ImagesComponent()
public String doCache(Resource resource, String siteName) throws Exception
resource
- the resource to cachesiteName
- the name of the siteException
- if an error occurs while caching the fileprivate String _getCacheDirectory(Resource resource, String siteName)