Package com.ning.http.util
Class UTF8UrlEncoder
java.lang.Object
com.ning.http.util.UTF8UrlEncoder
Convenience class that encapsulates details of "percent encoding"
(as per RFC-3986, see [http://www.ietf.org/rfc/rfc3986.txt]).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BitSetstatic final BitSetstatic final BitSetstatic final BitSetstatic final BitSetstatic final BitSetstatic final BitSetEncoding table used for figuring out ascii characters that must be escaped (all non-Ascii characters need to be encoded anyway) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuilderencodeAndAppendFormElement(StringBuilder sb, CharSequence input) static StringBuilderencodeAndAppendQuery(StringBuilder sb, String query) static StringBuilderencodeAndAppendQueryElement(StringBuilder sb, CharSequence input) static StringencodePath(String input) static StringencodeQueryElement(String input)
-
Field Details
-
RFC3986_UNRESERVED_CHARS
Encoding table used for figuring out ascii characters that must be escaped (all non-Ascii characters need to be encoded anyway) -
RFC3986_RESERVED_CHARS
-
RFC3986_SUBDELIM_CHARS
-
RFC3986_PCHARS
-
BUILT_PATH_UNTOUCHED_CHARS
-
BUILT_QUERY_UNTOUCHED_CHARS
-
FORM_URL_ENCODED_SAFE_CHARS
-
-
Method Details
-
encodePath
-
encodeAndAppendQuery
-
encodeQueryElement
-
encodeAndAppendQueryElement
-
encodeAndAppendFormElement
-