|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.apikit.uri.URICoder
public class URICoder
An encoder/decoder for use by URI templates.
Only unreserved characters according to RFC 3986 do not need to be encoded within a variable:unreserved = ALPHA / DIGIT / '-' / '.' / '_' / '˜';This encoder/decoder should be designed so that URI which contain only unreserved characters are processed faster.
| Method Summary | |
|---|---|
static String |
decode(String s)
Decode the string as valid URI fragment. |
static String |
encode(String s)
Encodes the string as valid URI fragment. |
static String |
encode(String s,
char c)
Encodes the string as valid URI fragment. |
static String |
minimalEncode(String s)
Encodes the string as valid URI fragment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encode(String s)
s - The string to encode.
public static String encode(String s,
char c)
s - The string to encode.c - An ASCII character that should not be encoded if found in the string.
public static String minimalEncode(String s)
s - The string to encode.
public static String decode(String s)
s - The string to decode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||