- All Known Implementing Classes:
ReadableBodyPartHeaders
,WriteableBodyPartHeaders
Body part headers.
-
Method Summary
Modifier and TypeMethodDescriptionGet theContent-Disposition
header.Get theContent-Type
header.default MediaType
Returns the defaultContent-Type
header value:MediaType.APPLICATION_OCTET_STREAM
if theContent-Disposition
header is present with a non empty value, otherwiseMediaType.TEXT_PLAIN
.Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.helidon.common.http.Parameters
add, add, addAll, computeIfAbsent, computeSingleIfAbsent, first, iterator, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap
-
Method Details
-
contentType
MediaType contentType()Get theContent-Type
header. If theContent-Type
header is not present, the default value is retrieved usingdefaultContentType()
.- Returns:
- MediaType, never
null
-
contentDisposition
ContentDisposition contentDisposition()Get theContent-Disposition
header.- Returns:
- ContentDisposition, never
null
-
defaultContentType
Returns the defaultContent-Type
header value:MediaType.APPLICATION_OCTET_STREAM
if theContent-Disposition
header is present with a non empty value, otherwiseMediaType.TEXT_PLAIN
.- Returns:
- MediaType, never
null
- See Also:
-