Class MediaType
java.lang.Object
org.junit.jupiter.api.MediaType
- Direct Known Subclasses:
MediaType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MediaTypeTheapplication/jsonmedia type.static final MediaTypeTheapplication/octet-streammedia type.static final MediaTypeTheimage/jpegmedia type.static final MediaTypeTheimage/pngmedia type.static final MediaTypeThetext/plainmedia type.static final MediaTypeThetext/plain; charset=UTF-8media type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaTypeCreate a media type with the given type and subtype.static MediaTypeCreate a media type with the given type, subtype, and charset.final booleanfinal inthashCode()static MediaTypeParse the given media type value.final StringtoString()Returns a string representation of this media type.
-
Field Details
-
TEXT_PLAIN
Thetext/plainmedia type. -
TEXT_PLAIN_UTF_8
Thetext/plain; charset=UTF-8media type. -
APPLICATION_JSON
Theapplication/jsonmedia type. -
APPLICATION_OCTET_STREAM
Theapplication/octet-streammedia type. -
IMAGE_JPEG
Theimage/jpegmedia type. -
IMAGE_PNG
Theimage/pngmedia type.
-
-
Constructor Details
-
MediaType
-
MediaType
-
-
Method Details
-
parse
-
create
-
create
-
toString
-
equals
-
hashCode
-