public class AttachmentURIResolver extends AttachmentURIResolver
URIResolver for type "attachment-content".| Modifier and Type | Field and Description |
|---|---|
protected URIPrefixHandler |
_webPrefixHandler
The URI prefix handler
|
__PLUGIN_CONTENT_PATTERN, _context, _prefixHandler, _resolver| Constructor and Description |
|---|
AttachmentURIResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextualize(Context context) |
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
|
void |
service(ServiceManager manager) |
_resolveImage, checkLink, getLabel, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64, resolveImageAsBase64enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected URIPrefixHandler _webPrefixHandler
public AttachmentURIResolver()
public void contextualize(Context context) throws ContextException
contextualize in interface Contextualizablecontextualize in class AttachmentURIResolverContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AttachmentURIResolverServiceExceptionpublic String getType()
URIResolverURIResolver.getType in interface URIResolvergetType in class AttachmentURIResolverURIResolver.protected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
AttachmentURIResolvergetUriPrefix in class AttachmentURIResolverobject - 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