Replace RFC7807 by RFC9457 in documentation
This commit updates all references to RFC7807 by RFC9457 since the former is now obsolete. Closes gh-32806
This commit is contained in:
@@ -184,7 +184,7 @@ public class MediaType extends MimeType implements Serializable {
|
||||
/**
|
||||
* Public constant media type for {@code application/problem+json}.
|
||||
* @since 5.0
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7807#section-6.1">
|
||||
* @see <a href="https://www.iana.org/assignments/media-types/application/problem+json">
|
||||
* Problem Details for HTTP APIs, 6.1. application/problem+json</a>
|
||||
*/
|
||||
public static final MediaType APPLICATION_PROBLEM_JSON;
|
||||
@@ -198,7 +198,7 @@ public class MediaType extends MimeType implements Serializable {
|
||||
/**
|
||||
* Public constant media type for {@code application/problem+json}.
|
||||
* @since 5.0
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7807#section-6.1">
|
||||
* @see <a href="https://www.iana.org/assignments/media-types/application/problem+json">
|
||||
* Problem Details for HTTP APIs, 6.1. application/problem+json</a>
|
||||
* @deprecated as of 5.2 in favor of {@link #APPLICATION_PROBLEM_JSON}
|
||||
* since major browsers like Chrome
|
||||
@@ -224,7 +224,7 @@ public class MediaType extends MimeType implements Serializable {
|
||||
/**
|
||||
* Public constant media type for {@code application/problem+xml}.
|
||||
* @since 5.0
|
||||
* @see <a href="https://tools.ietf.org/html/rfc7807#section-6.2">
|
||||
* @see <a href="https://www.iana.org/assignments/media-types/application/problem+xml">
|
||||
* Problem Details for HTTP APIs, 6.2. application/problem+xml</a>
|
||||
*/
|
||||
public static final MediaType APPLICATION_PROBLEM_XML;
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.util.Assert;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
/**
|
||||
* Representation for an RFC 7807 problem detail. Includes spec-defined
|
||||
* Representation for an RFC 9457 problem detail. Includes spec-defined
|
||||
* properties, and a {@link #getProperties() properties} map for additional,
|
||||
* non-standard properties.
|
||||
*
|
||||
@@ -45,7 +45,7 @@ import org.springframework.util.ObjectUtils;
|
||||
* @author Rossen Stoyanchev
|
||||
* @author Juergen Hoeller
|
||||
* @since 6.0
|
||||
* @see <a href="https://datatracker.ietf.org/doc/html/rfc7807">RFC 7807</a>
|
||||
* @see <a href="https://datatracker.ietf.org/doc/html/rfc9457">RFC 9457</a>
|
||||
* @see org.springframework.web.ErrorResponse
|
||||
* @see org.springframework.web.ErrorResponseException
|
||||
*/
|
||||
|
||||
@@ -27,8 +27,8 @@ import org.springframework.http.ProblemDetail;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
/**
|
||||
* Representation of a complete RFC 7807 error response including status,
|
||||
* headers, and an RFC 7807 formatted {@link ProblemDetail} body. Allows any
|
||||
* Representation of a complete RFC 9457 error response including status,
|
||||
* headers, and an RFC 9457 formatted {@link ProblemDetail} body. Allows any
|
||||
* exception to expose HTTP error response information.
|
||||
*
|
||||
* <p>{@link ErrorResponseException} is a default implementation of this
|
||||
@@ -58,7 +58,7 @@ public interface ErrorResponse {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the body for the response, formatted as an RFC 7807
|
||||
* Return the body for the response, formatted as an RFC 9457
|
||||
* {@link ProblemDetail} whose {@link ProblemDetail#getStatus() status}
|
||||
* should match the response status.
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.lang.Nullable;
|
||||
|
||||
/**
|
||||
* {@link RuntimeException} that implements {@link ErrorResponse} to expose
|
||||
* an HTTP status, response headers, and a body formatted as an RFC 7807
|
||||
* an HTTP status, response headers, and a body formatted as an RFC 9457
|
||||
* {@link ProblemDetail}.
|
||||
*
|
||||
* <p>The exception can be used as is, or it can be extended as a more specific
|
||||
|
||||
@@ -75,7 +75,7 @@ public class MissingServletRequestPartException extends ServletException impleme
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the body for the response, formatted as an RFC 7807
|
||||
* Return the body for the response, formatted as an RFC 9457
|
||||
* {@link ProblemDetail} whose {@link ProblemDetail#getStatus() status}
|
||||
* should match the response status.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user