@Header(value="Content-Disposition") public class ContentDisposition extends BasicStringRangeArrayHeader
In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally.
Content-Disposition: form-data; name="fieldName"; filename="filename.jpg"
content-disposition = "Content-Disposition" ":" disposition-type *( ";" disposition-parm ) disposition-type = "attachment" | disp-extension-token disposition-parm = filename-parm | disp-extension-parm filename-parm = "filename" "=" quoted-string disp-extension-token = token disp-extension-parm = token "=" ( token | quoted-string )
Constructor and Description |
---|
ContentDisposition(Object value)
Constructor.
|
ContentDisposition(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static ContentDisposition |
of(Object value)
Convenience creator.
|
static ContentDisposition |
of(String value)
Returns a parsed and cached header.
|
static ContentDisposition |
of(Supplier<?> value)
Convenience creator using supplier.
|
asRanges, getRange, getRanges, getValue, match, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public ContentDisposition(Object value)
public ContentDisposition(String value)
value
- The header value.public static ContentDisposition of(String value)
value
- The header value.ContentDisposition
object.public static ContentDisposition of(Object value)
value
- The header value.
String
ContentDisposition
object.public static ContentDisposition of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringRangeArrayHeader.getValue()
.
value
- The header value supplier.
String
ContentDisposition
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.