Class StrutsUrlEncoder

java.lang.Object
org.apache.struts2.url.StrutsUrlEncoder
All Implemented Interfaces:
Serializable, UrlEncoder

public class StrutsUrlEncoder extends Object implements UrlEncoder
See Also:
  • Constructor Details

    • StrutsUrlEncoder

      public StrutsUrlEncoder()
  • Method Details

    • setEncoding

      public void setEncoding(String encoding)
    • encode

      public String encode(String input, String encoding)
      Description copied from interface: UrlEncoder
      Encodes the input tb be used with URL using the provided encoding
      Specified by:
      encode in interface UrlEncoder
      Parameters:
      input - String to encode
      encoding - encoding to use
      Returns:
      encoded string
    • encode

      public String encode(String input)
      Description copied from interface: UrlEncoder
      Encodes the input to be used with URL using default encoding, e.g.: struts.i18n.encoding
      Specified by:
      encode in interface UrlEncoder
      Parameters:
      input - String to encode
      Returns:
      encoded string