Class RepositoryPathEncoder


  • public class RepositoryPathEncoder
    extends Object
    • Constructor Detail

      • RepositoryPathEncoder

        public RepositoryPathEncoder()
    • 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's encodeURIComponent
        Parameters:
        value - The String to be encoded
        Returns:
        the encoded String
      • encodeRepositoryPath

        public static String encodeRepositoryPath​(String path)
      • decodeRepositoryPath

        public static String decodeRepositoryPath​(String path)