Package com.axelor.common.http
Class ContentDisposition
- java.lang.Object
-
- com.axelor.common.http.ContentDisposition
-
public class ContentDisposition extends Object
This class provides some methods to deal with Content-Disposition as defined in RFC 6266
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentDisposition.Builder
Builder forContentDisposition
-
Constructor Summary
Constructors Constructor Description ContentDisposition(String type, String name, String filename)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentDisposition.Builder
attachment()
Builder for aContentDisposition
of type attachment.boolean
equals(Object o)
static ContentDisposition.Builder
formData()
Builder for aContentDisposition
of type form-data.String
getFilename()
String
getName()
String
getType()
int
hashCode()
static ContentDisposition.Builder
inline()
Builder for aContentDisposition
of type inline.String
toString()
Return the header value for this content disposition as defined in RFC 6266.
-
-
-
Field Detail
-
FORM_DATA
public static final String FORM_DATA
form-data content-disposition type- See Also:
- Constant Field Values
-
ATTACHMENT
public static final String ATTACHMENT
attachment content-disposition type- See Also:
- Constant Field Values
-
INLINE
public static final String INLINE
inline content-disposition type- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
-
getFilename
public String getFilename()
-
getName
public String getName()
-
toString
public String toString()
Return the header value for this content disposition as defined in RFC 6266.
-
attachment
public static ContentDisposition.Builder attachment()
Builder for aContentDisposition
of type attachment.
-
formData
public static ContentDisposition.Builder formData()
Builder for aContentDisposition
of type form-data.
-
inline
public static ContentDisposition.Builder inline()
Builder for aContentDisposition
of type inline.
-
-