public class PageAttachmentURIResolver extends AttachmentURIResolver
URIResolver for type "attachment-page"._webPrefixHandler__PLUGIN_CONTENT_PATTERN, _context, _prefixHandler, _resolver| Constructor and Description |
|---|
PageAttachmentURIResolver() |
| Modifier and Type | Method and Description |
|---|---|
private String |
_getUrl(String uri,
boolean download,
boolean absolute,
boolean internal,
String keyword,
String addBeforeExtension) |
I18nizableText |
getLabel(String uri)
Get an URI label.
|
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. |
contextualize, getUriPrefix, service_resolveImage, checkLink, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImageAsBase64, resolveImageAsBase64enableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic PageAttachmentURIResolver()
public String getType()
URIResolverURIResolver.getType in interface URIResolvergetType in class AttachmentURIResolverURIResolver.private String _getUrl(String uri, boolean download, boolean absolute, boolean internal, String keyword, String addBeforeExtension)
public String resolve(String uri, boolean download, boolean absolute, boolean internal)
URIResolverresolve in interface URIResolverresolve in class AttachmentURIResolveruri - 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 resolveBoundedImage(String uri, int maxHeight, int maxWidth, boolean download, boolean absolute, boolean internal)
URIResolverresolveBoundedImage in interface URIResolverresolveBoundedImage in class AttachmentURIResolveruri - 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.public String resolveImage(String uri, int height, int width, boolean download, boolean absolute, boolean internal)
URIResolverresolveImage in interface URIResolverresolveImage in class AttachmentURIResolveruri - 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 I18nizableText getLabel(String uri)
URIResolvergetLabel in interface URIResolvergetLabel in class AttachmentURIResolveruri - the uri which label to get.