|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.UrlDecoder
public class UrlDecoder
Adapted from java.net.URLDecoder, but defines instances for query string decoding versus URL path component decoding.
The difference is important because a space is encoded as a + in a query string, but this is a valid value in a path component (and is therefore not decode back to a space).
URLDecoder
,
RFC-2396Field Summary | |
---|---|
static UrlDecoder |
PATH_INSTANCE
Encoder used to decode components of a path. For example: http://org.acme/foo/thispart/orthispart?butnot=thispart |
static UrlDecoder |
QUERY_INSTANCE
Encoder used to decode name or value components of a query string. For example: http://org.acme/notthis/northis/oreventhis?buthis=isokay&asis=thispart |
Method Summary | |
---|---|
java.lang.String |
decode(java.lang.String s,
java.nio.charset.Charset enc)
|
java.lang.String |
decode(java.lang.String s,
java.lang.String enc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final UrlDecoder QUERY_INSTANCE
public static final UrlDecoder PATH_INSTANCE
Method Detail |
---|
public java.lang.String decode(java.lang.String s, java.nio.charset.Charset enc)
s
- string to decodeenc
- encoding to decode with
URLDecoder.decode(String, String)
public java.lang.String decode(java.lang.String s, java.lang.String enc)
s
- string to decodeenc
- encoding to decode with
URLDecoder.decode(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |