Package net.serenitybdd.rest
Enum DecomposedContentType
- java.lang.Object
-
- java.lang.Enum<DecomposedContentType>
-
- net.serenitybdd.rest.DecomposedContentType
-
- All Implemented Interfaces:
Serializable
,Comparable<DecomposedContentType>
public enum DecomposedContentType extends Enum<DecomposedContentType>
User: YamStranger Date: 4/16/16 Time: 2:22 PM
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
APPLICATION_JAVASCRIPT
APPLICATION_JSON
APPLICATION_XHTML_XML
APPLICATION_XML
BINARY
HTML
TEST_JAVASCRIPT
TEST_XML
TEXT
URLENC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
DecomposedContentType
byString(String string)
io.restassured.http.ContentType
contentType()
String
toString()
static DecomposedContentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DecomposedContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final DecomposedContentType ANY
-
TEXT
public static final DecomposedContentType TEXT
-
APPLICATION_JSON
public static final DecomposedContentType APPLICATION_JSON
-
APPLICATION_JAVASCRIPT
public static final DecomposedContentType APPLICATION_JAVASCRIPT
-
APPLICATION_XML
public static final DecomposedContentType APPLICATION_XML
-
TEST_XML
public static final DecomposedContentType TEST_XML
-
APPLICATION_XHTML_XML
public static final DecomposedContentType APPLICATION_XHTML_XML
-
TEST_JAVASCRIPT
public static final DecomposedContentType TEST_JAVASCRIPT
-
HTML
public static final DecomposedContentType HTML
-
URLENC
public static final DecomposedContentType URLENC
-
BINARY
public static final DecomposedContentType BINARY
-
-
Method Detail
-
values
public static DecomposedContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DecomposedContentType c : DecomposedContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DecomposedContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
byString
public DecomposedContentType byString(String string)
-
toString
public String toString()
- Overrides:
toString
in classEnum<DecomposedContentType>
-
asString
public String asString()
-
contentType
public io.restassured.http.ContentType contentType()
-
-