Package au.com.dius.pact.core.model
Class ContentType
-
- All Implemented Interfaces:
public final class ContentType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ContentType.Companion
-
Field Summary
Fields Modifier and Type Field Description private final MediaType
contentType
public final static ContentType.Companion
Companion
-
Constructor Summary
Constructors Constructor Description ContentType(String contentType)
ContentType(MediaType contentType)
-
Method Summary
Modifier and Type Method Description final MediaType
getContentType()
final Boolean
isJson()
final Boolean
isXml()
final Boolean
isKafkaSchemaRegistryJson()
final Boolean
isOctetStream()
String
toString()
final String
asString()
final Charset
asCharset()
final ContentType
or(ContentType other)
final String
getBaseType()
final Boolean
isBinaryType()
final Boolean
isMultipart()
final Boolean
isMultipartFormData()
Boolean
equals(Object other)
Integer
hashCode()
final ContentType
getSupertype()
final static ContentType
fromString(String contentType)
-
-
Constructor Detail
-
ContentType
ContentType(String contentType)
-
ContentType
ContentType(MediaType contentType)
-
-
Method Detail
-
getContentType
final MediaType getContentType()
-
isKafkaSchemaRegistryJson
final Boolean isKafkaSchemaRegistryJson()
-
isOctetStream
final Boolean isOctetStream()
-
or
final ContentType or(ContentType other)
-
getBaseType
final String getBaseType()
-
isBinaryType
final Boolean isBinaryType()
-
isMultipart
final Boolean isMultipart()
-
isMultipartFormData
final Boolean isMultipartFormData()
-
getSupertype
final ContentType getSupertype()
-
fromString
final static ContentType fromString(String contentType)
-
-
-
-