Package org.silverpeas.core.web.webdav
Class SilverpeasJcrWebdavContext
- java.lang.Object
-
- org.silverpeas.core.web.webdav.SilverpeasJcrWebdavContext
-
public class SilverpeasJcrWebdavContext extends Object
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clearFromToken(String token)
Clears the application cache from the data handled bySilverpeasJcrWebdavContext
and associated to the given token.static SilverpeasJcrWebdavContext
createWebdavContext(String jcrDocumentUrlLocation, String token)
Initializing an instance from the document URL location into the JCR and a token.String
getJcrDocumentUrlLocation()
Gets the document URL location into the JCR.String
getToken()
The authentication token.static SilverpeasJcrWebdavContext
getWebdavContext(String webDavUrl)
Initializing an instance from a computed webdavUrl.
If no token is found from the given URL, no exception is thrown andgetToken()
will return an empty string.String
getWebDavUrl()
Gets the computed webdav URL.
-
-
-
Method Detail
-
clearFromToken
public static void clearFromToken(String token)
Clears the application cache from the data handled bySilverpeasJcrWebdavContext
and associated to the given token.- Parameters:
token
- the token from which the cache must be cleared.
-
createWebdavContext
public static SilverpeasJcrWebdavContext createWebdavContext(String jcrDocumentUrlLocation, String token)
Initializing an instance from the document URL location into the JCR and a token.- Parameters:
jcrDocumentUrlLocation
- the document url location into the JCR.token
- the token to introduce.- Returns:
- the
SilverpeasJcrWebdavContext
instance initialized with the given data. The webdavUrl has been computed.
-
getWebdavContext
public static SilverpeasJcrWebdavContext getWebdavContext(String webDavUrl)
Initializing an instance from a computed webdavUrl.
If no token is found from the given URL, no exception is thrown andgetToken()
will return an empty string.- Parameters:
webDavUrl
- the webdav url.- Returns:
- the
SilverpeasJcrWebdavContext
instance initialized with the given webdavUrl. The document URL location into the JCR is decoded and the token has been extracted.
-
getJcrDocumentUrlLocation
public String getJcrDocumentUrlLocation()
Gets the document URL location into the JCR.- Returns:
- the URL as String.
-
getWebDavUrl
public String getWebDavUrl()
Gets the computed webdav URL.- Returns:
- the URL as String.
-
getToken
public String getToken()
The authentication token.- Returns:
- the token as String.
-
-