| Modifier and Type | Field and Description |
|---|---|
| public static final String | CONTENT_TYPE
The default HTML form content type. |
| private static final String | |
| private static final char | |
| private static final BitSet | |
| private static final BitSet | |
| private static final BitSet | PATHSAFE
Characters which are safe to use in a path,
i.e. |
| private static final BitSet | |
| private static final char | |
| private static final char | |
| private static final int | |
| private static final BitSet | |
| private static final BitSet | UNRESERVED
Unreserved characters, i.e. alphanumeric, plus: |
| private static final BitSet | URIC
Characters which are safe to use in a query or a fragment,
i.e. |
| private static final BitSet | URLENCODER
Safe characters for x-www-form-urlencoded data, as per java.net.URLEncoder and browser behaviour,
i.e. alphanumeric plus |
| private static final BitSet | USERINFO
Characters which are safe to use in userinfo,
i.e. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| private static String | Returns: encoded stringthe content to decode, will decode '+' as space content, final String the charset to use charset)Decode/unescape www-url-form-encoded content. |
| private static String | Returns: encoded stringthe content to decode, will decode '+' as space content, final Charset the charset to use charset)Decode/unescape www-url-form-encoded content. |
| private static String | Returns: encoded stringthe content to encode, will convert space to '+' content, final String the charset to use charset)Encode/escape www-url-form-encoded content. |
| private static String | Returns: encoded stringthe content to encode, will convert space to '+' content, final Charset the charset to use charset)Encode/escape www-url-form-encoded content. |
| pack-priv static String | Returns: the encoded stringthe string to encode, does not convert space to '+' content, final Charset the charset to use charset)Encode a String using the |
| pack-priv static String | |
| pack-priv static String | Returns: the encoded stringthe string to encode, does not convert space to '+' content, final Charset the charset to use charset)Encode a String using the |
| public static String | Returns: Anapplication/x-www-form-urlencoded stringThe parameters to include. parameters, final String The encoding to use. charset)Returns a String that is suitable for use as an |
| public static String | Returns: Anapplication/x-www-form-urlencoded stringThe parameters to include. parameters, final char The parameter separator, by convention, parameterSeparator, final String '&' or ';'.The encoding to use. charset)Returns a String that is suitable for use as an |
| public static String | Returns: Anapplication/x-www-form-urlencoded stringThe parameters to include. parameters, final Charset The encoding to use. charset)Returns a String that is suitable for use as an |
| public static String | Returns: Anapplication/x-www-form-urlencoded stringThe parameters to include. parameters, final char The parameter separator, by convention, parameterSeparator, final Charset '&' or ';'.The encoding to use. charset)Returns a String that is suitable for use as an |
| public static String | Returns: URI path componentthe segments. segments, final Charset parameter charset. charset)Returns a string consisting of joint encoded path segments. |
| public static String | Returns: URI path componentthe segments. segments)Returns a string consisting of joint encoded path segments. |
| public static boolean | isEncoded(final HttpEntity entity)
Returns true if the entity's Content-Type header is
|
| public static List | |
| public static List | Returns: list of query parameters.input URI. uri, final Charset parameter charset. charset)Returns a list of |
| public static List | Returns: a list ofNameValuePair as built from the URI's query portion.The entity to parse entity)Returns a list of |
| public static void | parse(final List<NameValuePair>
List to add parameters to. parameters, final Scanner Input that contains the parameters to parse. scanner, final String Encoding to use when decoding the parameters. charset)
Deprecated
(4.4) use
Adds all parameters within the Scanner to the list of parse(String, java.
parameters, as encoded by
encoding.
|
| public static void | parse(final List<NameValuePair>
List to add parameters to. parameters, final Scanner Input that contains the parameters to parse. scanner, final String The Pattern string for parameter separators, by convention parameterSepartorPattern, final String "[&;]"Encoding to use when decoding the parameters. charset)
Deprecated
(4.4) use
Adds all parameters within the Scanner to the list of
parse(org.
parameters, as encoded by encoding.
|
| public static List | Returns: list of query parameters.URI query component. s, final Charset charset to use when decoding the parameters. charset)Returns a list of |
| public static List | Returns: list of query parameters.input text. s, final Charset parameter charset. charset, final char... parameter separators. separators)Returns a list of |
| public static List | Returns: a list ofNameValuePair as built from the URI's query portion.text to parse. buf, final Charset Encoding to use when decoding the parameters. charset, final char... element separators. separators)Returns a list of |
| public static List | Returns: list of segments.URI path component. s, final Charset parameter charset. charset)Returns a list of URI path segments. |
| public static List | Returns: list of segments.URI path component. s)Returns a list of URI path segments. |
| pack-priv static List | |
| pack-priv static List | |
| private static String | Returns: encoded stringthe portion to decode content, final Charset the charset to use charset, final boolean if plusAsBlank)true, then convert '+' to space (e.g. for www-url-form-encoded content), otherwise leave as is.Decode/unescape a portion of a URL, to use with the query part ensure |
| private static String |
| CONTENT_TYPE | back to summary |
|---|---|
| public static final String CONTENT_TYPE The default HTML form content type. | |
| NAME_VALUE_SEPARATOR | back to summary |
|---|---|
| private static final String NAME_VALUE_SEPARATOR | |
| PATH_SEPARATOR | back to summary |
|---|---|
| private static final char PATH_SEPARATOR | |
| PATH_SEPARATORS | back to summary |
|---|---|
| private static final BitSet PATH_SEPARATORS | |
| PATH_SPECIAL | back to summary |
|---|---|
| private static final BitSet PATH_SPECIAL | |
| PATHSAFE | back to summary |
|---|---|
| private static final BitSet PATHSAFE Characters which are safe to use in a path,
i.e. | |
| PUNCT | back to summary |
|---|---|
| private static final BitSet PUNCT Punctuation characters: , ; : $ & + = These are the additional characters allowed by userinfo. | |
| QP_SEP_A | back to summary |
|---|---|
| private static final char QP_SEP_A | |
| QP_SEP_S | back to summary |
|---|---|
| private static final char QP_SEP_S | |
| RADIX | back to summary |
|---|---|
| private static final int RADIX | |
| RESERVED | back to summary |
|---|---|
| private static final BitSet RESERVED Reserved characters, i.e.
This list is the same as the | |
| UNRESERVED | back to summary |
|---|---|
| private static final BitSet UNRESERVED Unreserved characters, i.e. alphanumeric, plus:
This list is the same as the | |
| URIC | back to summary |
|---|---|
| private static final BitSet URIC Characters which are safe to use in a query or a fragment,
i.e. | |
| URLENCODER | back to summary |
|---|---|
| private static final BitSet URLENCODER Safe characters for x-www-form-urlencoded data, as per java.net.URLEncoder and browser behaviour,
i.e. alphanumeric plus | |
| USERINFO | back to summary |
|---|---|
| private static final BitSet USERINFO Characters which are safe to use in userinfo,
i.e. | |
| URLEncodedUtils | back to summary |
|---|---|
| public URLEncodedUtils() | |
| createEmptyList | back to summary |
|---|---|
| private static List | |
| decodeFormFields | back to summary |
|---|---|
| private static String decodeFormFields(final String content, final String charset) Decode/unescape www-url-form-encoded content. | |
| decodeFormFields | back to summary |
|---|---|
| private static String decodeFormFields(final String content, final Charset charset) Decode/unescape www-url-form-encoded content. | |
| encodeFormFields | back to summary |
|---|---|
| private static String encodeFormFields(final String content, final String charset) Encode/escape www-url-form-encoded content.
Uses the | |
| encodeFormFields | back to summary |
|---|---|
| private static String encodeFormFields(final String content, final Charset charset) Encode/escape www-url-form-encoded content.
Uses the | |
| encPath | back to summary |
|---|---|
| pack-priv static String encPath(final String content, final Charset charset) Encode a String using the Used by URIBuilder to encode path segments. | |
| encUric | back to summary |
|---|---|
| pack-priv static String encUric(final String content, final Charset charset) Encode a String using the Used by URIBuilder to encode the query and fragment segments. | |
| encUserInfo | back to summary |
|---|---|
| pack-priv static String encUserInfo(final String content, final Charset charset) Encode a String using the Used by URIBuilder to encode the userinfo segment. | |
| format | back to summary |
|---|---|
| public static String format(final List<? extends NameValuePair> parameters, final String charset) Returns a String that is suitable for use as an
| |
| format | back to summary |
|---|---|
| public static String format(final List<? extends NameValuePair> parameters, final char parameterSeparator, final String charset) Returns a String that is suitable for use as an
| |
| format | back to summary |
|---|---|
| public static String format(final Iterable<? extends NameValuePair> parameters, final Charset charset) Returns a String that is suitable for use as an
| |
| format | back to summary |
|---|---|
| public static String format(final Iterable<? extends NameValuePair> parameters, final char parameterSeparator, final Charset charset) Returns a String that is suitable for use as an
| |
| formatSegments | back to summary |
|---|---|
| public static String formatSegments(final Iterable<String> segments, final Charset charset) Returns a string consisting of joint encoded path segments. | |
| formatSegments | back to summary |
|---|---|
| public static String formatSegments(final String... segments) Returns a string consisting of joint encoded path segments. | |
| isEncoded | back to summary |
|---|---|
| public static boolean isEncoded(final HttpEntity entity) Returns true if the entity's Content-Type header is
| |
| parse | back to summary |
|---|---|
| public static List Deprecated 4.5 Use
| |
| parse | back to summary |
|---|---|
| public static List Returns a list of
| |
| parse | back to summary |
|---|---|
| public static List Returns a list of This is typically used while parsing an HTTP POST.
| |
| parse | back to summary |
|---|---|
| public static void parse(final List<NameValuePair> parameters, final Scanner scanner, final String charset)
Deprecated (4.4) use Adds all parameters within the Scanner to the list of
| |
| parse | back to summary |
|---|---|
| public static void parse(final List<NameValuePair> parameters, final Scanner scanner, final String parameterSepartorPattern, final String charset)
Deprecated (4.4) use Adds all parameters within the Scanner to the list of
| |
| parse | back to summary |
|---|---|
| public static List Returns a list of
| |
| parse | back to summary |
|---|---|
| public static List Returns a list of
| |
| parse | back to summary |
|---|---|
| public static List Returns a list of
| |
| parsePathSegments | back to summary |
|---|---|
| public static List Returns a list of URI path segments.
| |
| parsePathSegments | back to summary |
|---|---|
| public static List Returns a list of URI path segments.
| |
| splitPathSegments | back to summary |
|---|---|
| pack-priv static List | |
| splitSegments | back to summary |
|---|---|
| pack-priv static List | |
| urlDecode | back to summary |
|---|---|
| private static String urlDecode(final String content, final Charset charset, final boolean plusAsBlank) Decode/unescape a portion of a URL, to use with the query part ensure | |
| urlEncode | back to summary |
|---|---|
| private static String urlEncode(final String content, final Charset charset, final BitSet safechars, final boolean blankAsPlus) | |