public static class StringCodecFactory.UriEncoding extends Object implements StringCodec
Note that the name 'UriEncoding' is not fully accurate as it does not conform to URI specs but rather creates a slug, a human-readable String.
Direct usage of this class discouraged. It should only be used by frameworks to initialize the StringCodecFactory instance.
Constructor and Description |
---|
UriEncoding() |
Modifier and Type | Method and Description |
---|---|
String |
decode(String encoded)
Decodes a string of characters.
|
String |
encode(String input)
Encodes a string of characters.
|
public String encode(String input)
StringCodec
encode
in interface StringCodec
input
- the string to encodepublic String decode(String encoded)
StringCodec
decode
in interface StringCodec
encoded
- the previously encoded stringCopyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.