Package org.apache.wicket.util.encoding
Class UrlDecoder
- java.lang.Object
-
- org.apache.wicket.util.encoding.UrlDecoder
-
public class UrlDecoder extends Object
Adapted from Spring Framework's UriUtils class, 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).- Author:
- Thomas Heigl
- See Also:
- RFC-2396
-
-
Field Summary
Fields Modifier and Type Field Description static UrlDecoder
PATH_INSTANCE
Encoder used to decode components of a path.
For example: http://org.acme/foo/thispart/orthispart?butnot=thispartstatic 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decode(String s, String enc)
String
decode(String source, Charset charset)
-
-
-
Field Detail
-
QUERY_INSTANCE
public static final 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
-
PATH_INSTANCE
public static final UrlDecoder PATH_INSTANCE
Encoder used to decode components of a path.
For example: http://org.acme/foo/thispart/orthispart?butnot=thispart
-
-