Class UrlCodecUtils
java.lang.Object
org.elasticsearch.xpack.esql.expression.function.scalar.util.UrlCodecUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRfc3986Safe(char c) Determines whether a character is considered unreserved (or safe) according to RFC3986.static org.apache.lucene.util.BytesRefurlEncode(org.apache.lucene.util.BytesRef val, BreakingBytesRefBuilder scratch, boolean plusForSpace)
-
Method Details
-
urlEncode
public static org.apache.lucene.util.BytesRef urlEncode(org.apache.lucene.util.BytesRef val, BreakingBytesRefBuilder scratch, boolean plusForSpace) -
isRfc3986Safe
public static boolean isRfc3986Safe(char c) Determines whether a character is considered unreserved (or safe) according to RFC3986. Alphanumerics along with ".-_~" are safe, and therefore not percent-encoded.- Parameters:
c- A character- Returns:
- Boolean
-