org.springframework.http

Interface ContentDisposition.Builder

  • Enclosing class:
    ContentDisposition


    public static interface ContentDisposition.Builder
    A mutable builder for ContentDisposition.
    • Method Detail

      • filename

        ContentDisposition.Builder filename(java.lang.String filename,
                                            java.nio.charset.Charset charset)
        Set the value of the filename* that will be encoded as defined in the RFC 5987. Only the US-ASCII, UTF-8 and ISO-8859-1 charsets are supported.

        Note: Do not use this for a "multipart/form-data" requests as per RFC 7578, Section 4.2 and also RFC 5987 itself mentions it does not apply to multipart requests.

      • creationDate

        ContentDisposition.Builder creationDate(java.time.ZonedDateTime creationDate)
        Set the value of the creation-date parameter.
      • modificationDate

        ContentDisposition.Builder modificationDate(java.time.ZonedDateTime modificationDate)
        Set the value of the modification-date parameter.