Package org.pentaho.platform.util
Class RepositoryPathEncoder
- java.lang.Object
-
- org.pentaho.platform.util.RepositoryPathEncoder
-
public class RepositoryPathEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description RepositoryPathEncoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
decodeRepositoryPath(String path)
static String
encode(String value)
Use this function to escape the "colonized" path for addition to a url.static String
encodeRepositoryPath(String path)
static String
encodeURIComponent(String value)
Encodes a string using the equivalent of a javascript'sencodeURIComponent
-
-
-
Method Detail
-
encode
public static String encode(String value)
Use this function to escape the "colonized" path for addition to a url.- Parameters:
value
- The colonized string (eg: ":public:Steel Wheels:File::WithColon")- Returns:
- Escaped version of value (eg: "%3Apublic%3ASteel%20Wheels%3AFile%3A%3AWithColon")
-
encodeURIComponent
public static String encodeURIComponent(String value)
Encodes a string using the equivalent of a javascript'sencodeURIComponent
- Parameters:
value
- The String to be encoded- Returns:
- the encoded String
-
-