java.lang.Object
org.apache.wicket.util.encoding.UrlDecoder
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UrlDecoder
Encoder used to decode components of a path.
For example: http://org.acme/foo/thispart/orthispart?static final UrlDecoder
Encoder used to decode name or value components of a query string.
For example: http://org.acme/notthis/northis/oreventhis? -
Method Summary
-
Field Details
-
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
Encoder used to decode components of a path.
For example: http://org.acme/foo/thispart/orthispart?butnot=thispart
-
-
Method Details
-
decode
- Parameters:
s
- string to decodeenc
- encoding to decode with- Returns:
- decoded string
-
decode
- Parameters:
source
- string to decodecharset
- encoding to decode with- Returns:
- decoded string
-