fr.paris.lutece.portal.service.html
Class EncodingService

java.lang.Object
  extended by fr.paris.lutece.portal.service.html.EncodingService

public final class EncodingService
extends java.lang.Object

Encoding utils


Method Summary
static java.lang.String encodeUrl(java.lang.String strSource)
          Encode an url string.
static java.lang.String encodeUrl(java.lang.String strSource, java.lang.String strProperty)
          Encode an url string.
static java.lang.String encodeUrl(java.lang.String strSource, java.lang.String strProperty, java.lang.String strDefaultEncoding)
          Encode an url string
static java.lang.String getEncoding()
          Returns the current encoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeUrl

public static java.lang.String encodeUrl(java.lang.String strSource)
Encode an url string. Uses PROPERTY_URL_ENCODING property and DEFAULT_URI_ENCODING as default if PROPERTY_URL_ENCODING not found.

Parameters:
strSource - The string to encode
Returns:
The encoded string

encodeUrl

public static java.lang.String encodeUrl(java.lang.String strSource,
                                         java.lang.String strProperty)
Encode an url string. Uses DEFAULT_URI_ENCODING as default.

Parameters:
strSource - The string to encode
strProperty - The property used used for the encoding. (ex : lutece.encoding.url )
Returns:
The encoded string

encodeUrl

public static java.lang.String encodeUrl(java.lang.String strSource,
                                         java.lang.String strProperty,
                                         java.lang.String strDefaultEncoding)
Encode an url string

Parameters:
strSource - The string to encode
strProperty - The property used used for the encoding. (ex : lutece.encoding.url )
strDefaultEncoding - default encoding if strProperty cannot be found.
Returns:
The encoded string

getEncoding

public static java.lang.String getEncoding()
Returns the current encoding

Returns:
The current encoding


Copyright © 2012 Mairie de Paris. All Rights Reserved.