public final class UTF8UrlEncoder extends Object
Modifier and Type | Field and Description |
---|---|
static BitSet |
BUILT_PATH_UNTOUCHED_CHARS |
static BitSet |
BUILT_QUERY_UNTOUCHED_CHARS |
static BitSet |
FORM_URL_ENCODED_SAFE_CHARS |
static BitSet |
RFC3986_RESERVED_CHARS |
static BitSet |
RFC3986_SUBDELIM_CHARS |
static BitSet |
RFC3986_UNRESERVED_CHARS
Encoding table used for figuring out ascii characters that must be escaped
(all non-Ascii characters need to be encoded anyway)
|
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
encodeAndAppendFormElement(StringBuilder sb,
CharSequence input) |
static StringBuilder |
encodeAndAppendQuery(StringBuilder sb,
String query) |
static StringBuilder |
encodeAndAppendQueryElement(StringBuilder sb,
CharSequence input) |
static String |
encodePath(String input) |
static String |
encodeQueryElement(String input) |
public static final BitSet RFC3986_UNRESERVED_CHARS
public static final BitSet RFC3986_RESERVED_CHARS
public static final BitSet RFC3986_SUBDELIM_CHARS
public static final BitSet BUILT_PATH_UNTOUCHED_CHARS
public static final BitSet BUILT_QUERY_UNTOUCHED_CHARS
public static final BitSet FORM_URL_ENCODED_SAFE_CHARS
public static StringBuilder encodeAndAppendQuery(StringBuilder sb, String query)
public static StringBuilder encodeAndAppendQueryElement(StringBuilder sb, CharSequence input)
public static StringBuilder encodeAndAppendFormElement(StringBuilder sb, CharSequence input)
Copyright © 2015. All Rights Reserved.