Warning
This type should not be extended by third parties.
TestReporter#publishFile(Path, MediaType), TestReporter#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer) , org.junit.jupiter.api.extension.ExtensionContext#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer)
| Modifier and Type | Field and Description |
|---|---|
| public static final MediaType | APPLICATION_JSON
The |
| public static final MediaType | APPLICATION_OCTET_STREAM
The |
| public static final MediaType | IMAGE_JPEG
The |
| public static final MediaType | IMAGE_PNG
The |
| private static final Pattern | |
| public static final MediaType | TEXT_PLAIN
The |
| public static final MediaType | TEXT_PLAIN_UTF_8
The |
| private final String |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static MediaType | |
| public static MediaType | |
| public final boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public static MediaType | |
| public final String | Returns: a string representation of this media typeOverrides java. Returns a string representation of this media type. |
| APPLICATION_JSON | back to summary |
|---|---|
| public static final MediaType APPLICATION_JSON The | |
| APPLICATION_OCTET_STREAM | back to summary |
|---|---|
| public static final MediaType APPLICATION_OCTET_STREAM The | |
| IMAGE_JPEG | back to summary |
|---|---|
| public static final MediaType IMAGE_JPEG The | |
| IMAGE_PNG | back to summary |
|---|---|
| public static final MediaType IMAGE_PNG The | |
| PATTERN | back to summary |
|---|---|
| private static final Pattern PATTERN | |
| TEXT_PLAIN | back to summary |
|---|---|
| public static final MediaType TEXT_PLAIN The | |
| TEXT_PLAIN_UTF_8 | back to summary |
|---|---|
| public static final MediaType TEXT_PLAIN_UTF_8 The | |
| value | back to summary |
|---|---|
| private final String value | |
| MediaType | back to summary |
|---|---|
| protected MediaType(String type, String subtype, @Nullable Charset charset) | |
| MediaType | back to summary |
|---|---|
| protected MediaType(String value) | |
| create | back to summary |
|---|---|
| public static MediaType create(String type, String subtype) Create a media type with the given type and subtype. | |
| create | back to summary |
|---|---|
| public static MediaType create(String type, String subtype, Charset charset) Create a media type with the given type, subtype, and charset. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
| public static MediaType parse(String value) Parse the given media type value. Must be valid according to RFC 2045. | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Returns a string representation of this media type. | |