Class UrlEscapingUtil

java.lang.Object
org.sourcelab.kafka.connect.apiclient.util.UrlEscapingUtil

public class UrlEscapingUtil extends Object
Intended to provide a shim between Guava so that dependency can be removed in a future release.
  • Constructor Details

    • UrlEscapingUtil

      public UrlEscapingUtil()
  • Method Details

    • escapePath

      public static String escapePath(String input)
      Returns the escaped form of a given literal string.
      Parameters:
      input - the literal string to be escaped.
      Returns:
      the escaped form of string.
      Throws:
      NullPointerException - if input string is null.
      IllegalArgumentException - if string contains badly formed UTF-16 or cannot be escaped for any other reason