Package org.eclipse.jetty.ee10.servlet
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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsing the default character encoding from the context otherwise iso-8859-1.Character encoding was inferred from the Content-Type and will be added as a parameter to the Content-Type.Character encoding was not set, or the encoding was cleared withsetCharacterEncoding(null)
.The character encoding has been explicitly set usingServletResponse.setCharacterEncoding(String)
.The character encoding has been explicitly set using the Content-Type charset parameter withServletResponse.setContentType(String)
.The default character encoding of the locale was used after a call toServletResponse.setLocale(Locale)
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ServletContextResponse.EncodingFrom[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SET
Character encoding was not set, or the encoding was cleared withsetCharacterEncoding(null)
. -
DEFAULT
Using the default character encoding from the context otherwise iso-8859-1. -
INFERRED
Character encoding was inferred from the Content-Type and will be added as a parameter to the Content-Type. -
SET_LOCALE
The default character encoding of the locale was used after a call toServletResponse.setLocale(Locale)
. -
SET_CONTENT_TYPE
The character encoding has been explicitly set using the Content-Type charset parameter withServletResponse.setContentType(String)
. -
SET_CHARACTER_ENCODING
The character encoding has been explicitly set usingServletResponse.setCharacterEncoding(String)
.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-