Class RepositoryPathEncoder
- java.lang.Object
-
- org.pentaho.reporting.designer.extensions.pentaho.repository.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 StringdecodeRepositoryPath(String path)static Stringencode(String value)Use this function to escape the "colonized" path for addition to a url.static StringencodeRepositoryPath(String path)static StringencodeURIComponent(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
-
-