Enum Class EncodingMode

java.lang.Object
java.lang.Enum<EncodingMode>
org.exoplatform.web.controller.router.EncodingMode
All Implemented Interfaces:
Serializable, Comparable<EncodingMode>, Constable

public enum EncodingMode extends Enum<EncodingMode>
Specifies how a string value should be encoded in an URL.
  • Enum Constant Details

    • FORM

      public static final EncodingMode FORM
      FORM encodes the whole string with the x-www-form-urlencoded also known as default form encoding. For instance the string "/a/b" is encoded to "%2Fa%2Fb".
    • PRESERVE_PATH

      public static final EncodingMode PRESERVE_PATH
      PRESERVE_PATH encodes the whole string like the FORM but preserve the path separators. For instance the string "/a b" is enocded to "/a+b".
  • Method Details

    • values

      public static EncodingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EncodingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null