java.lang.Object
io.helidon.common.http.HashParameters
io.helidon.common.http.HashHeaders
io.helidon.media.multipart.WriteableBodyPartHeaders
- All Implemented Interfaces:
Headers
,Parameters
,BodyPartHeaders
,Iterable<Map.Entry<String,
List<String>>>
Writeable body part headers.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class to createWriteableBodyPartHeaders
instances.Nested classes/interfaces inherited from class io.helidon.common.http.HashParameters
HashParameters.ArrayIterable<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new builder instance.Get theContent-Disposition
header.void
contentDisposition
(ContentDisposition contentDisposition) Sets the value of "Content-Disposition" header.Get theContent-Type
header.void
contentType
(MediaType contentType) Sets the MIME type of the body part.static WriteableBodyPartHeaders
create()
Create a new instance ofWriteableBodyPartHeaders
with empty headers.Methods inherited from class io.helidon.common.http.HashHeaders
concat, concat, create, create, emptyMapForReads, emptyMapForUpdates
Methods inherited from class io.helidon.common.http.HashParameters
add, add, addAll, all, computeIfAbsent, computeSingleIfAbsent, concat, create, equals, first, hashCode, iterator, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.media.multipart.BodyPartHeaders
defaultContentType
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
Description copied from interface:BodyPartHeaders
Get theContent-Type
header. If theContent-Type
header is not present, the default value is retrieved usingBodyPartHeaders.defaultContentType()
.- Specified by:
contentType
in interfaceBodyPartHeaders
- Returns:
- MediaType, never
null
-
contentType
Sets the MIME type of the body part.- Parameters:
contentType
- Media type of the content.
-
contentDisposition
Description copied from interface:BodyPartHeaders
Get theContent-Disposition
header.- Specified by:
contentDisposition
in interfaceBodyPartHeaders
- Returns:
- ContentDisposition, never
null
-
contentDisposition
Sets the value of "Content-Disposition" header.- Parameters:
contentDisposition
- content disposition
-
builder
Create a new builder instance.- Returns:
- Builder
-
create
Create a new instance ofWriteableBodyPartHeaders
with empty headers.- Returns:
- WriteableBodyPartHeaders
-