The UTF-8 charset is assumed, unless otherwise defined by either passing a parameter or setting the "org.mortbay.util.UrlEncoding.charset" System property.
This class is only partially synchronized. In particular, simple get operations are not protected from concurrent updates.
java.net.URLEncoder
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides org. HashMap instance: the keys and
values themselves are not cloned.
|
| public void | |
| public void | |
| public static void | decode88591To(InputStream
InputSteam to read in, MultiMap MultiMap to add parameters to map, int maximum length of content to read 0r -1 for no limit maxLength)Decoded parameters to Map. |
| public static String | |
| public static void | |
| public static void | decodeTo(InputStream
the stream containing the encoded parameters in, MultiMap map, String charset, int maxLength)Decoded parameters to Map. |
| public static void | |
| public static void | decodeUtf8To(byte[]
the byte[] containing the encoded parameters raw, int offset, int length, MultiMap map)Decoded parameters to Map. |
| public static void | decodeUtf8To(byte[]
the byte[] containing the encoded parameters raw, int offset, int length, MultiMap map, Utf8StringBuffer buffer)Decoded parameters to Map. |
| public static void | decodeUtf8To(InputStream
InputSteam to read in, MultiMap MultiMap to add parameters to map, int maximum length of content to read 0r -1 for no limit maxLength)Decoded parameters to Map. |
| public String | |
| public String | |
| public synchronized String | |
| public static String | |
| public static String | |
| public static String |
| ENCODING | back to summary |
|---|---|
| public static final String ENCODING | |
| UrlEncoded | back to summary |
|---|---|
| public UrlEncoded(UrlEncoded url) | |
| UrlEncoded | back to summary |
|---|---|
| public UrlEncoded() | |
| UrlEncoded | back to summary |
|---|---|
| public UrlEncoded(String s) | |
| UrlEncoded | back to summary |
|---|---|
| public UrlEncoded(String s, String charset) | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides org. Doc from java. Returns a shallow copy of this
| |
| decode | back to summary |
|---|---|
| public void decode(String query) | |
| decode | back to summary |
|---|---|
| public void decode(String query, String charset) | |
| decode88591To | back to summary |
|---|---|
| public static void decode88591To(InputStream in, MultiMap map, int maxLength) throws IOException Decoded parameters to Map.
| |
| decodeString | back to summary |
|---|---|
| public static String decodeString(String encoded, int offset, int length, String charset) Decode String with % encoding. This method makes the assumption that the majority of calls will need no decoding. | |
| decodeTo | back to summary |
|---|---|
| public static void decodeTo(String content, MultiMap map, String charset) Decoded parameters to Map.
| |
| decodeTo | back to summary |
|---|---|
| public static void decodeTo(InputStream in, MultiMap map, String charset, int maxLength) throws IOException Decoded parameters to Map.
| |
| decodeUtf16To | back to summary |
|---|---|
| public static void decodeUtf16To(InputStream in, MultiMap map, int maxLength) throws IOException | |
| decodeUtf8To | back to summary |
|---|---|
| public static void decodeUtf8To(byte[] raw, int offset, int length, MultiMap map) Decoded parameters to Map.
| |
| decodeUtf8To | back to summary |
|---|---|
| public static void decodeUtf8To(byte[] raw, int offset, int length, MultiMap map, Utf8StringBuffer buffer) Decoded parameters to Map.
| |
| decodeUtf8To | back to summary |
|---|---|
| public static void decodeUtf8To(InputStream in, MultiMap map, int maxLength) throws IOException Decoded parameters to Map.
| |
| encode | back to summary |
|---|---|
| public String encode() Encode Hashtable with % encoding. | |
| encode | back to summary |
|---|---|
| public String encode(String charset) Encode Hashtable with % encoding. | |
| encode | back to summary |
|---|---|
| public synchronized String encode(String charset, boolean equalsForNullValue) Encode Hashtable with % encoding.
| |
| encode | back to summary |
|---|---|
| public static String encode(MultiMap map, String charset, boolean equalsForNullValue) Encode Hashtable with % encoding.
| |
| encodeString | back to summary |
|---|---|
| public static String encodeString(String string) Perform URL encoding.
| |
| encodeString | back to summary |
|---|---|
| public static String encodeString(String string, String charset) Perform URL encoding.
| |