public class Resource2FlipbookUriResolver extends ResourceURIResolver implements PluginAware, Configurable
URIResolver for type "resource-pdf2flash".| Modifier and Type | Class and Description | 
|---|---|
private class  | 
Resource2FlipbookUriResolver.CacheThread  | 
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
_pluginName
The plugin name. 
 | 
protected ConvertResource2ImagesComponent | 
_resourceComponent
The cache resource component. 
 | 
protected String | 
_type
The type. 
 | 
_webPrefixHandler_context, _prefixHandler, _resolver| Constructor and Description | 
|---|
Resource2FlipbookUriResolver()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
configure(Configuration configuration)  | 
protected String | 
getResourcePath(Resource resource)
Get the resource path 
 | 
String | 
getType()
Returns the type of links handled by this  
URIResolver. | 
protected String | 
getUriPrefix(AmetysObject object,
            boolean download,
            boolean absolute,
            boolean internal)
Get the URI prefix 
 | 
String | 
resolve(String uri,
       boolean download,
       boolean absolute,
       boolean internal)
Resolves a link URI for rendering purposes. 
The output must be a properly encoded path, relative to the webapp context, accessible from a browser.  | 
String | 
resolveBoundedImage(String uri,
                   int maxHeight,
                   int maxWidth,
                   boolean download,
                   boolean absolute,
                   boolean internal)
Resolves a link URI for rendering image. 
The output must be a properly encoded path, relative to the webapp context, accessible from a browser.  | 
String | 
resolveImage(String uri,
            int height,
            int width,
            boolean download,
            boolean absolute,
            boolean internal)
Resolves a link URI for rendering image. 
The output must be a properly encoded path, relative to the webapp context, accessible from a browser.  | 
void | 
service(ServiceManager serviceManager)  | 
void | 
setPluginInfo(String pluginName,
             String featureName,
             String id)
Sets the plugin info relative to the current component. 
Note : The feature name may be null if the targeted component in declared at plugin level.  | 
_getSiteName, contextualize, getRealPrefix_resolve, checkLink, getLabel, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImageAsBase64, resolveImageAsBase64enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected String _pluginName
protected ConvertResource2ImagesComponent _resourceComponent
public Resource2FlipbookUriResolver()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ResourceURIResolverServiceExceptionpublic void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic String getType()
URIResolverURIResolver.getType in interface URIResolvergetType in class ResourceURIResolverURIResolver.protected String getResourcePath(Resource resource)
ResourceURIResolvergetResourcePath in class ResourceURIResolverresource - the resourcepublic String resolve(String uri, boolean download, boolean absolute, boolean internal)
URIResolverresolve in interface URIResolverresolve in class ResourceURIResolveruri - the link URI.download - true if the pointed resource is to be downloaded.absolute - true if the url must be absoluteinternal - true to get an internal URI.public String resolveImage(String uri, int height, int width, boolean download, boolean absolute, boolean internal)
URIResolverresolveImage in interface URIResolverresolveImage in class ResourceURIResolveruri - the link URI.height - the height of the image.width - the width of the imagedownload - true if the pointed resource is to be downloaded.absolute - true if the url must be absoluteinternal - true to get an internal URI.public String resolveBoundedImage(String uri, int maxHeight, int maxWidth, boolean download, boolean absolute, boolean internal)
URIResolverresolveBoundedImage in interface URIResolverresolveBoundedImage in class ResourceURIResolveruri - the link URI.maxHeight - the max heightmaxWidth - the max widthdownload - true if the pointed resource is to be downloaded.absolute - true if the url must be absoluteinternal - true to get an internal URI.protected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
ResourceURIResolvergetUriPrefix in class ResourceURIResolverobject - The objectdownload - true if the pointed resource is to be downloaded.absolute - true to get an internal URI.internal - true if the url must be absolute