org.wso2.registry.utils
Class RegistryUtils

java.lang.Object
  extended by org.wso2.registry.utils.RegistryUtils

public class RegistryUtils
extends java.lang.Object


Field Summary
static org.apache.commons.logging.Log log
           
 
Constructor Summary
RegistryUtils()
           
 
Method Summary
static java.lang.String getParentPath(java.lang.String resourcePath)
           
static java.lang.String getPureResourcePath(java.lang.String resourcePath)
          All "valid" paths pure resources should be in the form /c1/c2/r1.
static VersionedPath getVersionedPath(java.lang.String resourcePath)
          Paths refering to a version of a resource are in the form /c1/c2/r1?v=2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.commons.logging.Log log
Constructor Detail

RegistryUtils

public RegistryUtils()
Method Detail

getVersionedPath

public static VersionedPath getVersionedPath(java.lang.String resourcePath)
Paths refering to a version of a resource are in the form /c1/c2/r1?v=2. Give a such version path, this method extracts the valid pure path and the version number of the resource. Note that this method should only be used for pure resource paths.

Parameters:
resourcePath - versioned resource path.
Returns:
VersionPath object containing the valid resource path and the version number.

getPureResourcePath

public static java.lang.String getPureResourcePath(java.lang.String resourcePath)
All "valid" paths pure resources should be in the form /c1/c2/r1. That is they should start with "/" and should not end with "/". Given a path of a pure resource, this method prepares the valid path for that path.

Parameters:
resourcePath - Path of a pure resource.
Returns:
Valid path of the pure resource.

getParentPath

public static java.lang.String getParentPath(java.lang.String resourcePath)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.