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