| 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 |
|---|---|
java.lang.String |
decode(java.lang.String string) |
java.lang.String |
decode(java.lang.String string,
java.lang.String encoding) |
java.lang.String |
encode(java.lang.String string) |
abstract java.lang.String |
encode(java.lang.String string,
java.lang.String encoding) |
static URLCoder |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.lang.String encode(java.lang.String string,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic final java.lang.String encode(java.lang.String string)
public final java.lang.String decode(java.lang.String string)
public final java.lang.String decode(java.lang.String string,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionCopyright © 2015 Molindo GmbH. All Rights Reserved.