Package io.cucumber.messages.types
Enum Attachment.ContentEncoding
- java.lang.Object
-
- java.lang.Enum<Attachment.ContentEncoding>
-
- io.cucumber.messages.types.Attachment.ContentEncoding
-
- All Implemented Interfaces:
Serializable,Comparable<Attachment.ContentEncoding>
- Enclosing class:
- Attachment
public static enum Attachment.ContentEncoding extends Enum<Attachment.ContentEncoding>
* Whether to interpret `body` "as-is" (IDENTITY) or if it needs to be Base64-decoded (BASE64). Content encoding is *not* determined by the media type, but rather by the type of the object being attached: - string => IDENTITY - byte array => BASE64 - stream => BASE64
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Attachment.ContentEncodingfromValue(String value)StringtoString()Stringvalue()static Attachment.ContentEncodingvalueOf(String name)Returns the enum constant of this type with the specified name.static Attachment.ContentEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTITY
public static final Attachment.ContentEncoding IDENTITY
-
BASE_64
public static final Attachment.ContentEncoding BASE_64
-
-
Method Detail
-
values
public static Attachment.ContentEncoding[] 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 (Attachment.ContentEncoding c : Attachment.ContentEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Attachment.ContentEncoding 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<Attachment.ContentEncoding>
-
value
public String value()
-
fromValue
public static Attachment.ContentEncoding fromValue(String value)
-
-