public class Metadata2FlipbookUriResolver extends MetadataURIResolver implements PluginAware, LogEnabled
URIResolver for type "resource-pdf2flash".| Modifier and Type | Class and Description |
|---|---|
private class |
Metadata2FlipbookUriResolver.CacheThread |
MetadataURIResolver.MetaInfo| Modifier and Type | Field and Description |
|---|---|
protected Logger |
_logger
The logger .
|
protected ConvertMetadata2ImagesComponent |
_metadataComponent
Metadata to images convertor.
|
protected String |
_pluginName
The plugin name.
|
_prefixHandler_context, _resolver| Constructor and Description |
|---|
Metadata2FlipbookUriResolver() |
| Modifier and Type | Method and Description |
|---|---|
private BinaryMetadata |
_getBinaryMetadata(String metadataPath,
CompositeMetadata metadata) |
void |
enableLogging(Logger logger) |
String |
getType()
Returns the type of links handled by this
URIResolver. |
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. |
getUri_getMetaInfo, _resolveImage, checkLink, contextualize, getBinaryMetadata, getLabel, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImageAsBase64, resolveImageAsBase64protected String _pluginName
protected ConvertMetadata2ImagesComponent _metadataComponent
public Metadata2FlipbookUriResolver()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class MetadataURIResolverServiceExceptionpublic 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 enableLogging(Logger logger)
enableLogging in interface LogEnabledpublic String getType()
URIResolverURIResolver.getType in interface URIResolvergetType in class MetadataURIResolverURIResolver.public String resolve(String uri, boolean download, boolean absolute, boolean internal)
URIResolverresolve in interface URIResolverresolve in class MetadataURIResolveruri - 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 MetadataURIResolveruri - 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 MetadataURIResolveruri - 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.private BinaryMetadata _getBinaryMetadata(String metadataPath, CompositeMetadata metadata)