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, resolveImageAsBase64enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected URIPrefixHandler _webPrefixHandler
public ResourceURIResolver()
public void contextualize(Context context) throws ContextException
contextualize in interface Contextualizablecontextualize in class ResourceURIResolverContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class ResourceURIResolverServiceExceptionprotected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
ResourceURIResolvergetUriPrefix in class ResourceURIResolverobject - 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)
ResourceURIResolvergetResourcePath in class ResourceURIResolverresource - the resourceprotected String getRealPrefix(Resource resource, String prefix)
ResourceURIResolvergetRealPrefix in class ResourceURIResolverresource - the resourceprefix - the initial prefixprotected String _getSiteName(Resource resource)
resource - the resource