Class EncoderCache

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      EncoderCache(int cacheSize)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EncoderCache

        EncoderCache(int cacheSize)
    • Method Detail

      • getEncoded

         String getEncoded(String k)

        Get the specified value URL encoded using UTF-8 encoding

        Parameters:
        k - the value to encode
      • getEncoded

         String getEncoded(String k, String contentEncoding)

        Get the specified value URL encoded using the specified encoding

        Parameters:
        k - the value to encode
        contentEncoding - the encoding to use when URL encoding