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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class to createWriteableBodyPartHeadersinstances.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-Dispositionheader.voidcontentDisposition(ContentDisposition contentDisposition) Sets the value of "Content-Disposition" header.Get theContent-Typeheader.voidcontentType(MediaType contentType) Sets the MIME type of the body part.static WriteableBodyPartHeaderscreate()Create a new instance ofWriteableBodyPartHeaderswith empty headers.Methods inherited from class io.helidon.common.http.HashHeaders
concat, concat, create, create, emptyMapForReads, emptyMapForUpdatesMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.media.multipart.BodyPartHeaders
defaultContentTypeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:BodyPartHeadersGet theContent-Typeheader. If theContent-Typeheader is not present, the default value is retrieved usingBodyPartHeaders.defaultContentType().- Specified by:
contentTypein 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:BodyPartHeadersGet theContent-Dispositionheader.- Specified by:
contentDispositionin 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 ofWriteableBodyPartHeaderswith empty headers.- Returns:
- WriteableBodyPartHeaders
-