public class AttachmentURIResolver extends AttachmentURIResolver
URIResolver
for type "attachment-content".Modifier and Type | Field and Description |
---|---|
protected URIPrefixHandler |
_webPrefixHandler
The URI prefix handler
|
_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) |
checkLink, getLabel, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveImage, resolveImageAsBase64, resolveImageAsBase64
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected URIPrefixHandler _webPrefixHandler
public AttachmentURIResolver()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
contextualize
in class AttachmentURIResolver
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AttachmentURIResolver
ServiceException
public String getType()
URIResolver
URIResolver
.getType
in interface URIResolver
getType
in class AttachmentURIResolver
URIResolver
.protected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
AttachmentURIResolver
getUriPrefix
in class AttachmentURIResolver
object
- 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