Package org.ametys.plugins.flipbook
Class PdfCoverResourceHandler
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.resources.SimpleResourceHandler
org.ametys.core.resources.ImageResourceHandler
org.ametys.plugins.flipbook.PdfCoverResourceHandler
- All Implemented Interfaces:
ResourceHandler,LogEnabled,Contextualizable,Serviceable
Resource handler for pdf resources files
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverAmetys object resolverprotected ConvertExternalResource2ImagesComponentAttachment componentFields inherited from class org.ametys.core.resources.SimpleResourceHandler
_objectModel, _parameters, _readForDownload, _requestedLocation, _resolver, _source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) voidservice(ServiceManager serviceManager) setup(String location, Map objectModel, Parameters par, boolean readForDownload) Initialize the resource handler with a resource.Methods inherited from class org.ametys.core.resources.ImageResourceHandler
generate, getKeyMethods inherited from class org.ametys.core.resources.SimpleResourceHandler
getLastModified, getMimeType, getValidityMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.resources.ResourceHandler
acceptRanges, generate, getLength, shouldUseSourceContentLength
-
Field Details
-
_externalResourceComponent
Attachment component -
_ametysObjectResolver
Ametys object resolver
-
-
Constructor Details
-
PdfCoverResourceHandler
public PdfCoverResourceHandler()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSimpleResourceHandler- Throws:
ServiceException
-
setup
public Source setup(String location, Map objectModel, Parameters par, boolean readForDownload) throws IOException, ProcessingException Description copied from interface:ResourceHandlerInitialize the resource handler with a resource.- Specified by:
setupin interfaceResourceHandler- Overrides:
setupin classImageResourceHandler- Parameters:
location- The source uriobjectModel- The object modelpar- The parametersreadForDownload- if the resource is to be downloaded and not rendered.- Returns:
- the resolved source
- Throws:
IOException- If an error occursProcessingException- If an error occurs
-