public class ResourceURIResolver extends ResourceURIResolver
URIResolver
for type "explorer". Modifier and Type | Field and Description |
---|---|
protected URIPrefixHandler |
_webPrefixHandler
The URI prefix handler
|
_context, _prefixHandler, _resolver
Constructor and Description |
---|
ResourceURIResolver() |
Modifier and Type | Method and Description |
---|---|
protected String |
_getSiteName(Resource resource)
Get the site name from resource
|
void |
contextualize(Context context) |
protected String |
getRealPrefix(Resource resource,
String prefix)
Get the real prefix
|
protected String |
getResourcePath(Resource resource)
Get the resource path
|
protected String |
getUriPrefix(AmetysObject object,
boolean download,
boolean absolute,
boolean internal)
Get the URI prefix
|
void |
service(ServiceManager manager) |
_resolve, checkLink, getLabel, getType, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64, resolveImageAsBase64
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected URIPrefixHandler _webPrefixHandler
public ResourceURIResolver()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
contextualize
in class ResourceURIResolver
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ResourceURIResolver
ServiceException
protected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
ResourceURIResolver
getUriPrefix
in class ResourceURIResolver
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 absoluteprotected String getResourcePath(Resource resource)
ResourceURIResolver
getResourcePath
in class ResourceURIResolver
resource
- the resourceprotected String getRealPrefix(Resource resource, String prefix)
ResourceURIResolver
getRealPrefix
in class ResourceURIResolver
resource
- the resourceprefix
- the initial prefixprotected String _getSiteName(Resource resource)
resource
- the resource