|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.http.util.URIEncoderDecoder
public class URIEncoderDecoder
Constructor Summary | |
---|---|
URIEncoderDecoder()
|
Method Summary | |
---|---|
static java.lang.String |
decode(java.lang.String s)
Decodes the string argument which is assumed to be encoded in the x-www-form-urlencoded MIME content type using the UTF-8
encoding scheme. |
static java.lang.String |
quoteIllegal(java.lang.String s,
java.lang.String legal)
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and legal characters are converted into their hexidecimal value prepended by '%'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URIEncoderDecoder()
Method Detail |
---|
public static java.lang.String quoteIllegal(java.lang.String s, java.lang.String legal) throws java.io.UnsupportedEncodingException
s
- java.lang.String the string to be convertedlegal
- java.lang.String the characters allowed to be preserved in the
string s
java.io.UnsupportedEncodingException
public static java.lang.String decode(java.lang.String s) throws java.io.UnsupportedEncodingException
x-www-form-urlencoded
MIME content type using the UTF-8
encoding scheme.
'%' and two following hex digit characters are converted to the
equivalent byte value. All other characters are passed through
unmodified.
e.g. "A%20B%20C %24%25" -> "A B C $%"
Called from URI.getXYZ() methods
s
- java.lang.String The encoded string.
java.io.UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |