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, resolveImageAsBase64
protected String _pluginName
protected ConvertMetadata2ImagesComponent _metadataComponent
public Metadata2FlipbookUriResolver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class MetadataURIResolver
ServiceException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- 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 LogEnabled
public String getType()
URIResolver
URIResolver
.getType
in interface URIResolver
getType
in class MetadataURIResolver
URIResolver
.public String resolve(String uri, boolean download, boolean absolute, boolean internal)
URIResolver
resolve
in interface URIResolver
resolve
in class MetadataURIResolver
uri
- 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)
URIResolver
resolveImage
in interface URIResolver
resolveImage
in class MetadataURIResolver
uri
- 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)
URIResolver
resolveBoundedImage
in interface URIResolver
resolveBoundedImage
in class MetadataURIResolver
uri
- 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)