| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ContentDisposition.Builder
A mutable builder for  
ContentDisposition. | 
| Modifier and Type | Method and Description | 
|---|---|
static ContentDisposition.Builder | 
attachment()
Return a builder for a  
ContentDisposition of 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  
ContentDisposition of type "form-data". | 
Charset | 
getCharset()
Return the charset defined in filename* parameter, or  
null if 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, possibly decoded
 from BASE64 encoding based on RFC 2047, or of the filename*
 parameter, possibly decoded as defined in the RFC 5987. 
 | 
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  
null if 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  
ContentDisposition of type "inline". | 
boolean | 
isAttachment()
Return whether the  
type is "attachment". | 
boolean | 
isFormData()
Return whether the  
type is "form-data". | 
boolean | 
isInline()
Return whether the  
type is "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()
@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()