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,
Map objectModel,
Parameters par,
Map<String,Object> additionalParameters)
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, Map objectModel, Parameters par, Map<String,Object> additionalParameters) throws IOException, ProcessingException
ResourceHandler
setup
in interface ResourceHandler
setup
in class ImageResourceHandler
location
- The source uriobjectModel
- The object modelpar
- The parametersadditionalParameters
- Additional parameters that can be filled, and will be transmitted to getKey, getValidity and generateResourceIOException
- If an error occursProcessingException
- If an error occurs