Class ContentType
- java.lang.Object
-
- de.quantummaid.httpmaid.http.headers.ContentType
-
public final class ContentType extends Object
-
-
Constructor Summary
Constructors Constructor Description ContentType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcomment()static ContentTypeformUrlEncoded()static ContentTypefromString(String contentType)static ContentTypefromString(Optional<String> value)StringinternalValueForMapping()booleanisEmpty()static ContentTypejson()static ContentTypetextPlain()StringvalueWithComment()static ContentTypexml()static ContentTypeyaml()
-
-
-
Method Detail
-
fromString
public static ContentType fromString(Optional<String> value)
-
fromString
public static ContentType fromString(String contentType)
-
json
public static ContentType json()
-
xml
public static ContentType xml()
-
yaml
public static ContentType yaml()
-
formUrlEncoded
public static ContentType formUrlEncoded()
-
textPlain
public static ContentType textPlain()
-
isEmpty
public boolean isEmpty()
-
comment
public String comment()
-
valueWithComment
public String valueWithComment()
-
internalValueForMapping
public String internalValueForMapping()
-
-