Interface UrlEncoder

All Superinterfaces:
Serializable
All Known Implementing Classes:
StrutsUrlEncoder

public interface UrlEncoder extends Serializable
URL Encoder used internally by Struts
Since:
Struts 6.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(String input)
    Encodes the input to be used with URL using default encoding, e.g.: struts.i18n.encoding
    encode(String input, String encoding)
    Encodes the input tb be used with URL using the provided encoding
  • Method Details

    • encode

      String encode(String input, String encoding)
      Encodes the input tb be used with URL using the provided encoding
      Parameters:
      input - String to encode
      encoding - encoding to use
      Returns:
      encoded string
    • encode

      String encode(String input)
      Encodes the input to be used with URL using default encoding, e.g.: struts.i18n.encoding
      Parameters:
      input - String to encode
      Returns:
      encoded string