MimeTypeUtils constants cleanup: deprecated web media types
Issue: SPR-15137
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,6 +37,7 @@ import org.springframework.util.MimeType.SpecificityComparator;
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.0
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public abstract class MimeTypeUtils {
|
||||
|
||||
private static final byte[] BOUNDARY_CHARS =
|
||||
@@ -65,23 +66,31 @@ public abstract class MimeTypeUtils {
|
||||
public static final String ALL_VALUE = "*/*";
|
||||
|
||||
/**
|
||||
* Public constant mime type for {@code application/atom+xml}.
|
||||
* Public constant mime type for {@code application/atom+xml}.
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static MimeType APPLICATION_ATOM_XML;
|
||||
|
||||
/**
|
||||
* A String equivalent of {@link MimeTypeUtils#APPLICATION_ATOM_XML}.
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static String APPLICATION_ATOM_XML_VALUE = "application/atom+xml";
|
||||
|
||||
/**
|
||||
* Public constant mime type for {@code application/x-www-form-urlencoded}.
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
* */
|
||||
@Deprecated
|
||||
public final static MimeType APPLICATION_FORM_URLENCODED;
|
||||
|
||||
/**
|
||||
* A String equivalent of {@link MimeTypeUtils#APPLICATION_FORM_URLENCODED}.
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static String APPLICATION_FORM_URLENCODED_VALUE = "application/x-www-form-urlencoded";
|
||||
|
||||
/**
|
||||
@@ -106,12 +115,16 @@ public abstract class MimeTypeUtils {
|
||||
|
||||
/**
|
||||
* Public constant mime type for {@code application/xhtml+xml}.
|
||||
* */
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static MimeType APPLICATION_XHTML_XML;
|
||||
|
||||
/**
|
||||
* A String equivalent of {@link MimeTypeUtils#APPLICATION_XHTML_XML}.
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static String APPLICATION_XHTML_XML_VALUE = "application/xhtml+xml";
|
||||
|
||||
/**
|
||||
@@ -156,12 +169,16 @@ public abstract class MimeTypeUtils {
|
||||
|
||||
/**
|
||||
* Public constant mime type for {@code multipart/form-data}.
|
||||
* */
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static MimeType MULTIPART_FORM_DATA;
|
||||
|
||||
/**
|
||||
* A String equivalent of {@link MimeTypeUtils#MULTIPART_FORM_DATA}.
|
||||
* @deprecated as of 4.3.6, in favor of {@code MediaType} constants
|
||||
*/
|
||||
@Deprecated
|
||||
public final static String MULTIPART_FORM_DATA_VALUE = "multipart/form-data";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user