Package org.kohsuke.stapler.export
Enum Class Flavor
- All Implemented Interfaces:
Serializable
,Comparable<Flavor>
,Constable
Export flavor.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
Content-type of this flavor, including charset "UTF-8". -
Method Summary
Modifier and TypeMethodDescriptioncreateDataWriter
(Object bean, Writer w) abstract DataWriter
createDataWriter
(Object bean, Writer w, ExportConfig config) createDataWriter
(Object bean, StaplerResponse2 rsp) static Flavor
Returns the enum constant of this class with the specified name.static Flavor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JSON
-
JSONP
-
PYTHON
-
RUBY
-
XML
-
-
Field Details
-
contentType
Content-type of this flavor, including charset "UTF-8".
-
-
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
-
createDataWriter
- Throws:
IOException
-
createDataWriter
- Throws:
IOException
-
createDataWriter
public abstract DataWriter createDataWriter(Object bean, Writer w, ExportConfig config) throws IOException - Throws:
IOException
-