public class PdfCoverResourceHandler extends ImageResourceHandler
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysObjectResolver
Ametys object resolver
|
protected ConvertExternalResource2ImagesComponent |
_externalResourceComponent
Attachment component
|
private static Pattern |
_RESOURCE_PATH_PATTERN |
_cocoonContext, _context, _resolver, _supportedSuffixes
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
PdfCoverResourceHandler() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Get the priority of this handler
|
void |
service(ServiceManager serviceManager) |
Source |
setup(String location,
Parameters par)
Initialize the resource handler with a resource.
|
generateResource, getKey
configure, contextualize, getLastModified, getMimeType, getSize, getValidity, isSupported
getLogger, setLogger
private static final Pattern _RESOURCE_PATH_PATTERN
protected ConvertExternalResource2ImagesComponent _externalResourceComponent
protected AmetysObjectResolver _ametysObjectResolver
public PdfCoverResourceHandler()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractResourceHandler
ServiceException
public int getPriority()
ResourceHandler
getPriority
in interface ResourceHandler
getPriority
in class AbstractResourceHandler
public Source setup(String location, Parameters par) throws IOException, ProcessingException
ResourceHandler
setup
in interface ResourceHandler
setup
in class ImageResourceHandler
location
- The source uripar
- The parametersIOException
- If an error occursProcessingException
- If an error occurs