public final class EncodingService extends Object
Modifier and Type | Method and Description |
---|---|
static String |
encodeUrl(String strSource)
Encode an url string.
|
static String |
encodeUrl(String strSource,
String strProperty)
Encode an url string.
|
static String |
encodeUrl(String strSource,
String strProperty,
String strDefaultEncoding)
Encode an url string
|
static String |
getEncoding()
Returns the current encoding
|
public static String encodeUrl(String strSource)
PROPERTY_URL_ENCODING
property and DEFAULT_URI_ENCODING
as default if PROPERTY_URL_ENCODING
not
found.strSource
- The string to encodepublic static String encodeUrl(String strSource, String strProperty)
DEFAULT_URI_ENCODING
as default.strSource
- The string to encodestrProperty
- The property used used for the encoding. (ex : lutece.encoding.url )public static String encodeUrl(String strSource, String strProperty, String strDefaultEncoding)
strSource
- The string to encodestrProperty
- The property used used for the encoding. (ex : lutece.encoding.url )strDefaultEncoding
- default encoding if strProperty
cannot be found.public static String getEncoding()
Copyright © 2020 City of Paris. All rights reserved.