- java.lang.Object
-
- io.helidon.common.http.HashParameters
-
- io.helidon.media.multipart.WriteableBodyPartHeaders
-
- All Implemented Interfaces:
Headers,Parameters,BodyPartHeaders
public final class WriteableBodyPartHeaders extends HashParameters implements BodyPartHeaders
Writeable body part headers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWriteableBodyPartHeaders.BuilderBuilder class to createWriteableBodyPartHeadersinstances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WriteableBodyPartHeaders.Builderbuilder()Create a new builder instance.ContentDispositioncontentDisposition()Get theContent-Dispositionheader.voidcontentDisposition(ContentDisposition contentDisposition)Sets the value of "Content-Disposition" header.MediaTypecontentType()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.HashParameters
add, add, addAll, all, computeIfAbsent, computeSingleIfAbsent, concat, concat, create, create, equals, first, hashCode, 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 io.helidon.common.http.Parameters
add, add, addAll, computeIfAbsent, computeSingleIfAbsent, first, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap
-
-
-
-
Method Detail
-
contentType
public MediaType 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
public void contentType(MediaType contentType)
Sets the MIME type of the body part.- Parameters:
contentType- Media type of the content.
-
contentDisposition
public ContentDisposition contentDisposition()
Description copied from interface:BodyPartHeadersGet theContent-Dispositionheader.- Specified by:
contentDispositionin interfaceBodyPartHeaders- Returns:
- ContentDisposition, never
null
-
contentDisposition
public void contentDisposition(ContentDisposition contentDisposition)
Sets the value of "Content-Disposition" header.- Parameters:
contentDisposition- content disposition
-
builder
public static WriteableBodyPartHeaders.Builder builder()
Create a new builder instance.- Returns:
- Builder
-
create
public static WriteableBodyPartHeaders create()
Create a new instance ofWriteableBodyPartHeaderswith empty headers.- Returns:
- WriteableBodyPartHeaders
-
-