| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
contentType
Content-type of this flavor, including charset "UTF-8".
|
| Modifier and Type | Method and Description |
|---|---|
abstract DataWriter |
createDataWriter(java.lang.Object bean,
StaplerResponse rsp) |
abstract DataWriter |
createDataWriter(java.lang.Object bean,
java.io.Writer w) |
static Flavor |
valueOf(java.lang.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 java.lang.String contentType
public static Flavor[] values()
for (Flavor c : Flavor.values()) System.out.println(c);
public static Flavor valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract DataWriter createDataWriter(java.lang.Object bean, StaplerResponse rsp) throws java.io.IOException
java.io.IOExceptionpublic abstract DataWriter createDataWriter(java.lang.Object bean, java.io.Writer w) throws java.io.IOException
java.io.IOExceptionCopyright © 2012. All Rights Reserved.