-
- All Superinterfaces:
Headers
,Parameters
- All Known Implementing Classes:
ReadableBodyPartHeaders
,WriteableBodyPartHeaders
public interface BodyPartHeaders extends Headers
Body part headers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ContentDisposition
contentDisposition()
Get theContent-Disposition
header.MediaType
contentType()
Get theContent-Type
header.default MediaType
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
.-
Methods inherited from interface io.helidon.common.http.Parameters
add, add, addAll, computeIfAbsent, computeSingleIfAbsent, first, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap
-
-
-
-
Method Detail
-
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
default MediaType 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:
- RFC-7578
-
-