public enum Flavor extends Enum<Flavor>
Modifier and Type | Field and Description |
---|---|
String |
contentType
Content-type of this flavor, including charset "UTF-8".
|
Modifier and Type | Method and Description |
---|---|
DataWriter |
createDataWriter(Object bean,
StaplerResponse rsp) |
DataWriter |
createDataWriter(Object bean,
Writer w) |
abstract DataWriter |
createDataWriter(Object bean,
Writer w,
ExportConfig config) |
static Flavor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Flavor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flavor JSON
public static final Flavor PYTHON
public static final Flavor RUBY
public static final Flavor XML
public final String contentType
public static Flavor[] values()
for (Flavor c : Flavor.values()) System.out.println(c);
public static Flavor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic DataWriter createDataWriter(Object bean, StaplerResponse rsp) throws IOException
IOException
public DataWriter createDataWriter(Object bean, Writer w) throws IOException
IOException
public abstract DataWriter createDataWriter(Object bean, Writer w, ExportConfig config) throws IOException
IOException
Copyright © 2014. All rights reserved.