| Modifier and Type | Class and Description | 
|---|---|
| static interface  | ContentDisposition.BuilderA mutable builder for  ContentDisposition. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ContentDisposition.Builder | attachment()Return a builder for a  ContentDispositionof type "attachment". | 
| static ContentDisposition.Builder | builder(String type)Return a builder for a  ContentDisposition. | 
| static ContentDisposition | empty()Return an empty content disposition. | 
| boolean | equals(Object other) | 
| static ContentDisposition.Builder | formData()Return a builder for a  ContentDispositionof type "form-data". | 
| Charset | getCharset()Return the charset defined in filename* parameter, or  nullif not defined. | 
| ZonedDateTime | getCreationDate()Deprecated. 
 since 5.2.3 as per
 RFC 6266, Appendix B,
 to be removed in a future release. | 
| String | getFilename()Return the value of the filename parameter (or the value of the
 filename* one decoded as defined in the RFC 5987), or  nullif not defined. | 
| ZonedDateTime | getModificationDate()Deprecated. 
 since 5.2.3 as per
 RFC 6266, Appendix B,
 to be removed in a future release. | 
| String | getName()Return the value of the name parameter, or  nullif not defined. | 
| ZonedDateTime | getReadDate()Deprecated. 
 since 5.2.3 as per
 RFC 6266, Appendix B,
 to be removed in a future release. | 
| Long | getSize()Deprecated. 
 since 5.2.3 as per
 RFC 6266, Appendix B,
 to be removed in a future release. | 
| String | getType()Return the disposition type. | 
| int | hashCode() | 
| static ContentDisposition.Builder | inline()Return a builder for a  ContentDispositionof type "inline". | 
| boolean | isAttachment()Return whether the  typeis "attachment". | 
| boolean | isFormData()Return whether the  typeis "form-data". | 
| boolean | isInline()Return whether the  typeis "inline". | 
| static ContentDisposition | parse(String contentDisposition)Parse a Content-Disposition header value as defined in RFC 2183. | 
| String | toString()Return the header value for this content disposition as defined in RFC 6266. | 
public boolean isAttachment()
type is "attachment".public boolean isFormData()
type is "form-data".public boolean isInline()
type is "inline".@Nullable public String getType()
isAttachment(), 
isFormData(), 
isInline()@Nullable public String getName()
null if not defined.@Nullable public String getFilename()
null if not defined.@Nullable public Charset getCharset()
null if not defined.@Deprecated @Nullable public Long getSize()
null if not defined.@Deprecated @Nullable public ZonedDateTime getCreationDate()
null if not defined.@Deprecated @Nullable public ZonedDateTime getModificationDate()
null if not defined.@Deprecated @Nullable public ZonedDateTime getReadDate()
null if not defined.public String toString()
toString in class Objectparse(String)public static ContentDisposition.Builder attachment()
ContentDisposition of type "attachment".public static ContentDisposition.Builder formData()
ContentDisposition of type "form-data".public static ContentDisposition.Builder inline()
ContentDisposition of type "inline".public static ContentDisposition.Builder builder(String type)
ContentDisposition.type - the disposition type like for example inline,
 attachment, or form-datapublic static ContentDisposition empty()
public static ContentDisposition parse(String contentDisposition)
contentDisposition - the Content-Disposition header valuetoString()