Class EncodingService


  • public final class EncodingService
    extends java.lang.Object
    Encoding utils
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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