Polish ContentDisposition
This commit is contained in:
parent
967478b3a7
commit
7e2b81729e
|
@ -34,7 +34,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
|
|||
import static java.time.format.DateTimeFormatter.RFC_1123_DATE_TIME;
|
||||
|
||||
/**
|
||||
* Represent the Content-Disposition type and parameters as defined in RFC 6266.
|
||||
* Representation of the Content-Disposition type and parameters as defined in RFC 6266.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
* @author Juergen Hoeller
|
||||
|
@ -520,7 +520,7 @@ public final class ContentDisposition {
|
|||
/**
|
||||
* Set the value of the {@literal size} parameter.
|
||||
* @deprecated since 5.2.3 as per
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
|
||||
* to be removed in a future release.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -529,7 +529,7 @@ public final class ContentDisposition {
|
|||
/**
|
||||
* Set the value of the {@literal creation-date} parameter.
|
||||
* @deprecated since 5.2.3 as per
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
|
||||
* to be removed in a future release.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -538,7 +538,7 @@ public final class ContentDisposition {
|
|||
/**
|
||||
* Set the value of the {@literal modification-date} parameter.
|
||||
* @deprecated since 5.2.3 as per
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
|
||||
* to be removed in a future release.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -547,7 +547,7 @@ public final class ContentDisposition {
|
|||
/**
|
||||
* Set the value of the {@literal read-date} parameter.
|
||||
* @deprecated since 5.2.3 as per
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Apendix B</a>,
|
||||
* <a href="https://tools.ietf.org/html/rfc6266#appendix-B">RFC 6266, Appendix B</a>,
|
||||
* to be removed in a future release.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -612,24 +612,28 @@ public final class ContentDisposition {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public Builder size(Long size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public Builder creationDate(ZonedDateTime creationDate) {
|
||||
this.creationDate = creationDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public Builder modificationDate(ZonedDateTime modificationDate) {
|
||||
this.modificationDate = modificationDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public Builder readDate(ZonedDateTime readDate) {
|
||||
this.readDate = readDate;
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue