spring-framework / org.springframework.http / ContentDisposition

ContentDisposition

open class ContentDisposition

Represent the Content-Disposition type and parameters as defined in RFC 2183.

Author
Sebastien Deleuze

Author
Juergen Hoeller

Since
5.0

See Also
<a href="https://tools.ietf.org/html/rfc2183">RFC 2183</a>

Functions

builder

open static fun builder(type: String): Builder

Return a builder for a ContentDisposition.

empty

open static fun empty(): ContentDisposition

Return an empty content disposition.

equals

open fun equals(other: Any?): Boolean

getCharset

open fun getCharset(): Charset

Return the charset defined in filename* parameter, or null if not defined.

getCreationDate

open fun getCreationDate(): ZonedDateTime

Return the value of the creation-date parameter, or null if not defined.

getFilename

open fun getFilename(): String

Return the value of the filename parameter (or the value of the filename* one decoded as defined in the RFC 5987), or null if not defined.

getModificationDate

open fun getModificationDate(): ZonedDateTime

Return the value of the modification-date parameter, or null if not defined.

getName

open fun getName(): String

Return the value of the name parameter, or null if not defined.

getReadDate

open fun getReadDate(): ZonedDateTime

Return the value of the read-date parameter, or null if not defined.

getSize

open fun getSize(): Long

Return the value of the size parameter, or null if not defined.

getType

open fun getType(): String

Return the disposition type, like for example inline, attachment, form-data, or null if not defined.

hashCode

open fun hashCode(): Int

parse

open static fun parse(contentDisposition: String): ContentDisposition

Parse a Content-Disposition header value as defined in RFC 2183.

toString

open fun toString(): String

Return the header value for this content disposition as defined in RFC 2183.