com.silverpeas.jcrutil
Class SilverpeasJcrWebdavContext

java.lang.Object
  extended by com.silverpeas.jcrutil.SilverpeasJcrWebdavContext

public class SilverpeasJcrWebdavContext
extends Object

Author:
Yohann Chastagnier

Field Summary
protected static String WEBDAV_JCR_URL_SUFFIX
           
 
Method Summary
static void clearFromToken(String token)
          Clears the application cache from the data handled by SilverpeasJcrWebdavContext 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.
 String getWebDavUrl()
          Gets the computed webdav URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBDAV_JCR_URL_SUFFIX

protected static final String WEBDAV_JCR_URL_SUFFIX
See Also:
Constant Field Values
Method Detail

clearFromToken

public static void clearFromToken(String token)
Clears the application cache from the data handled by SilverpeasJcrWebdavContext 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 and getToken() 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.


Copyright © 2016 Silverpeas. All Rights Reserved.