Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions spring-web/src/main/java/org/springframework/http/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,18 @@ public class MediaType extends MimeType implements Serializable {
*/
public static final String TEXT_XML_VALUE = "text/xml";

/**
* Public constant media type for {@code application/java-archive}.
* @since ?.?.?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change this once the version is known.

*/
public static final MediaType APPLICATION_JAVA_ARCHIVE;

/**
* A String equivalent of {@link MediaType#APPLICATION_JAVA_ARCHIVE}.
* @since ?.?.?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will change this once the version is known.

*/
public static final String APPLICATION_JAVA_ARCHIVE_VALUE = "application/java-archive";

private static final String PARAM_QUALITY_FACTOR = "q";


Expand Down Expand Up @@ -419,6 +431,7 @@ public class MediaType extends MimeType implements Serializable {
TEXT_MARKDOWN = new MediaType("text", "markdown");
TEXT_PLAIN = new MediaType("text", "plain");
TEXT_XML = new MediaType("text", "xml");
APPLICATION_JAVA_ARCHIVE = new MediaType("application", "java-archive");
}


Expand Down