public class EncoderCache extends Object
Modifier and Type | Field | Description |
---|---|---|
static String |
URL_ARGUMENT_ENCODING |
The encoding which should be usd for URLs, according to HTTP specification
|
Constructor | Description |
---|---|
EncoderCache(int cacheSize) |
Modifier and Type | Method | Description |
---|---|---|
String |
getEncoded(String k) |
Get the specified value URL encoded using UTF-8 encoding
|
String |
getEncoded(String k,
String contentEncoding) |
Get the specified value URL encoded using the specified encoding
|
public static final String URL_ARGUMENT_ENCODING
public String getEncoded(String k)
k
- the value to encodepublic String getEncoded(String k, String contentEncoding) throws UnsupportedEncodingException
k
- the value to encodecontentEncoding
- the encoding to use when URL encodingUnsupportedEncodingException
- if the specified encoding is not supportedCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.