public class WebdavProjectResourceURIResolver extends ProjectResourceURIResolver
URIResolver
for webdav "project-resource". Modifier and Type | Field and Description |
---|---|
protected AuthenticationTokenManager |
_authenticationTokenManager
The authentication token manager
|
_pluginName
_webPrefixHandler
_context, _prefixHandler, _resolver
Constructor and Description |
---|
WebdavProjectResourceURIResolver() |
Modifier and Type | Method and Description |
---|---|
protected String |
_resolve(String uri,
boolean download,
boolean absolute,
boolean internal,
String prefix,
String suffix)
Creates a full uri
|
protected String |
getRealPrefix(Resource resource,
String prefix)
Get the real prefix
|
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) |
_getProject, getLabel, setPluginInfo
_getSiteName, contextualize, getResourcePath
checkLink, resolve, resolveBoundedImage, resolveBoundedImageAsBase64, resolveCroppedImage, resolveCroppedImageAsBase64, resolveImage, resolveImageAsBase64, resolveImageAsBase64
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AuthenticationTokenManager _authenticationTokenManager
public WebdavProjectResourceURIResolver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ResourceURIResolver
ServiceException
public String getType()
URIResolver
URIResolver
.getType
in interface URIResolver
getType
in class ProjectResourceURIResolver
URIResolver
.protected String _resolve(String uri, boolean download, boolean absolute, boolean internal, String prefix, String suffix)
ResourceURIResolver
_resolve
in class ResourceURIResolver
uri
- the base uri, ie the resource iddownload
- true to create a forced download uriabsolute
- true to create an absolute uri (if internal is false)internal
- true to create an internal uriprefix
- Prefix on the urisuffix
- Suffix on the uriprotected String getUriPrefix(AmetysObject object, boolean download, boolean absolute, boolean internal)
ResourceURIResolver
getUriPrefix
in class ProjectResourceURIResolver
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 getRealPrefix(Resource resource, String prefix)
ResourceURIResolver
getRealPrefix
in class ResourceURIResolver
resource
- the resourceprefix
- the initial prefix