Enum Class ServletContextResponse.EncodingFrom

java.lang.Object
java.lang.Enum<ServletContextResponse.EncodingFrom>
org.eclipse.jetty.ee10.servlet.ServletContextResponse.EncodingFrom
All Implemented Interfaces:
Serializable, Comparable<ServletContextResponse.EncodingFrom>, Constable
Enclosing class:
ServletContextResponse

protected static enum ServletContextResponse.EncodingFrom extends Enum<ServletContextResponse.EncodingFrom>
  • Enum Constant Details

    • NOT_SET

      public static final ServletContextResponse.EncodingFrom NOT_SET
      Character encoding was not set, or the encoding was cleared with setCharacterEncoding(null).
    • DEFAULT

      public static final ServletContextResponse.EncodingFrom DEFAULT
      Using the default character encoding from the context otherwise iso-8859-1.
    • INFERRED

      public static final ServletContextResponse.EncodingFrom INFERRED
      Character encoding was inferred from the Content-Type and will be added as a parameter to the Content-Type.
    • SET_LOCALE

      public static final ServletContextResponse.EncodingFrom SET_LOCALE
      The default character encoding of the locale was used after a call to ServletResponse.setLocale(Locale).
    • SET_CONTENT_TYPE

      public static final ServletContextResponse.EncodingFrom SET_CONTENT_TYPE
      The character encoding has been explicitly set using the Content-Type charset parameter with ServletResponse.setContentType(String).
    • SET_CHARACTER_ENCODING

      public static final ServletContextResponse.EncodingFrom SET_CHARACTER_ENCODING
      The character encoding has been explicitly set using ServletResponse.setCharacterEncoding(String).
  • Method Details

    • values

      public static ServletContextResponse.EncodingFrom[] 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 ServletContextResponse.EncodingFrom 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