org.junit.jupiter.api.TestReporter#publishFile(Path, MediaType) , org.junit.jupiter.api.TestReporter#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer) , ExtensionContext#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer)
| Modifier and Type | Field and Description |
|---|---|
| public static final MediaType | APPLICATION_JSON
Hides org.
References Deprecated
The MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
application/json media type.
|
| public static final MediaType | APPLICATION_JSON_UTF_8
Deprecated
since 5.14. Use The APPLICATION_JSON instead.
application/json; charset=UTF-8 media type.
|
| public static final MediaType | APPLICATION_OCTET_STREAM
Hides org.
References Deprecated
The MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
application/octet-stream media type.
|
| public static final MediaType | IMAGE_JPEG
Hides org.
References Deprecated
The MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
image/jpeg media type.
|
| public static final MediaType | IMAGE_PNG
Hides org.
References Deprecated
The MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
image/png media type.
|
| public static final MediaType | TEXT_PLAIN
Hides org.
References Deprecated
The MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
text/plain media type.
|
| public static final MediaType | TEXT_PLAIN_UTF_8
Hides org.
References Deprecated
The MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
text/plain; charset=UTF-8 media type.
|
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MediaType | Returns: the media typethe type; never type, String null or blankthe subtype; never subtype)null or blankHides org.
References Deprecated
MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
Create a media type with the given type and subtype. |
| public static MediaType | Returns: the media typethe type; never type, String null or blankthe subtype; never subtype, Charset null or blankthe charset; never charset)nullHides org.
References Deprecated
MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
Create a media type with the given type, subtype, and charset. |
| public static MediaType | Returns: the parsed media typethe media type value to parse; never value)null or blankHides org.
References Deprecated
MediaType is deprecated or references (maybe indirectly) at least one deprecated element.
Parse the given media type value. |
| APPLICATION_JSON | back to summary |
|---|---|
| public static final MediaType APPLICATION_JSON Hides org. References Deprecated
See corresponding docs for further information. The | |
| APPLICATION_JSON_UTF_8 | back to summary |
|---|---|
| public static final MediaType APPLICATION_JSON_UTF_8
The
| |
| APPLICATION_OCTET_STREAM | back to summary |
|---|---|
| public static final MediaType APPLICATION_OCTET_STREAM Hides org. References Deprecated
See corresponding docs for further information. The | |
| IMAGE_JPEG | back to summary |
|---|---|
| public static final MediaType IMAGE_JPEG Hides org. References Deprecated
See corresponding docs for further information. The | |
| IMAGE_PNG | back to summary |
|---|---|
| public static final MediaType IMAGE_PNG Hides org. References Deprecated
See corresponding docs for further information. The | |
| TEXT_PLAIN | back to summary |
|---|---|
| public static final MediaType TEXT_PLAIN Hides org. References Deprecated
See corresponding docs for further information. The | |
| TEXT_PLAIN_UTF_8 | back to summary |
|---|---|
| public static final MediaType TEXT_PLAIN_UTF_8 Hides org. References Deprecated
See corresponding docs for further information. The | |
| MediaType | back to summary |
|---|---|
| private MediaType(String type, String subtype, @Nullable Charset charset) | |
| MediaType | back to summary |
|---|---|
| private MediaType(String value) | |
| create | back to summary |
|---|---|
| public static MediaType create(String type, String subtype) Hides org. References Deprecated
See corresponding docs for further information. Create a media type with the given type and subtype. | |
| create | back to summary |
|---|---|
| public static MediaType create(String type, String subtype, Charset charset) Hides org. References Deprecated
See corresponding docs for further information. Create a media type with the given type, subtype, and charset. | |
| parse | back to summary |
|---|---|
| public static MediaType parse(String value) Hides org. References Deprecated
See corresponding docs for further information. Parse the given media type value. Must be valid according to RFC 2045.
| |