Package org.ametys.core.resources
Class ImageResourceHandlerProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.resources.AbstractResourceHandlerProvider
org.ametys.core.resources.AbstractSimpleResourceHandlerProvider
org.ametys.core.resources.ImageResourceHandlerProvider
- All Implemented Interfaces:
ResourceHandlerProvider
,LogEnabled
,Prioritizable
,Configurable
,Contextualizable
,Serviceable
ResourceHandlerProvider
for images.-
Field Summary
Modifier and TypeFieldDescriptionprotected SourceResolver
The source resolverThe supported mime typesFields inherited from class org.ametys.core.resources.AbstractSimpleResourceHandlerProvider
_supportedSuffixes
Fields inherited from class org.ametys.core.resources.AbstractResourceHandlerProvider
_context, _manager
Fields inherited from interface org.ametys.core.resources.ResourceHandlerProvider
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) protected ResourceHandler
createResourceHandler
(String source) Actually creates theResourceHandler
.getResourceHandler
(String location) Returns the correspondingResourceHandler
or null if none.
ReturnedResourceHandler
should be thread safe.void
service
(ServiceManager manager) Methods inherited from class org.ametys.core.resources.AbstractResourceHandlerProvider
contextualize, setup
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.resources.ResourceHandlerProvider
getPriority
-
Field Details
-
_resolver
The source resolver -
_supportedMimeTypes
The supported mime types
-
-
Constructor Details
-
ImageResourceHandlerProvider
public ImageResourceHandlerProvider()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractResourceHandlerProvider
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classAbstractSimpleResourceHandlerProvider
- Throws:
ConfigurationException
-
getResourceHandler
Description copied from interface:ResourceHandlerProvider
Returns the correspondingResourceHandler
or null if none.
ReturnedResourceHandler
should be thread safe.- Specified by:
getResourceHandler
in interfaceResourceHandlerProvider
- Overrides:
getResourceHandler
in classAbstractSimpleResourceHandlerProvider
- Parameters:
location
- the requested resource.- Returns:
- a ResourceHandler able to process the resource.
- Throws:
Exception
- if an error occurs during ResourceHandler creation.
-
createResourceHandler
Description copied from class:AbstractSimpleResourceHandlerProvider
Actually creates theResourceHandler
.- Specified by:
createResourceHandler
in classAbstractSimpleResourceHandlerProvider
- Parameters:
source
- the requested resource.- Returns:
- the created
ResourceHandler
.
-