Class UrlEscapingUtil
java.lang.Object
org.sourcelab.kafka.connect.apiclient.util.UrlEscapingUtil
Intended to provide a shim between Guava so that dependency can be removed in a future release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapePath(String input) Returns the escaped form of a given literal string.
-
Constructor Details
-
UrlEscapingUtil
public UrlEscapingUtil()
-
-
Method Details
-
escapePath
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
-