public enum URLCoder extends Enum<URLCoder>
UriUtils.encode*(..) methods| Modifier and Type | Class and Description |
|---|---|
static class |
URLCoder.Utf8Unsupported |
| Enum Constant and Description |
|---|
FRAGMENT |
HOST |
HTTP_URL |
PATH |
PATH_SEGMENT |
PORT |
QUERY |
QUERY_PARAM |
SCHEME |
URI |
USER_INFO |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(String string) |
String |
decode(String string,
String encoding) |
String |
encode(String string) |
abstract String |
encode(String string,
String encoding) |
static URLCoder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static URLCoder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final URLCoder SCHEME
public static final URLCoder USER_INFO
public static final URLCoder HOST
public static final URLCoder PORT
public static final URLCoder PATH
public static final URLCoder PATH_SEGMENT
public static final URLCoder QUERY
public static final URLCoder QUERY_PARAM
public static final URLCoder FRAGMENT
public static final URLCoder URI
public static final URLCoder HTTP_URL
public static URLCoder[] values()
for (URLCoder c : URLCoder.values()) System.out.println(c);
public static URLCoder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic abstract String encode(String string, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic final String decode(String string, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2014 Molindo GmbH. All Rights Reserved.