- 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 class
WriteableBodyPartHeaders.Builder
Builder class to createWriteableBodyPartHeaders
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WriteableBodyPartHeaders.Builder
builder()
Create a new builder instance.ContentDisposition
contentDisposition()
Get theContent-Disposition
header.void
contentDisposition(ContentDisposition contentDisposition)
Sets the value of "Content-Disposition" header.MediaType
contentType()
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.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: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
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:BodyPartHeaders
Get theContent-Disposition
header.- Specified by:
contentDisposition
in 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 ofWriteableBodyPartHeaders
with empty headers.- Returns:
- WriteableBodyPartHeaders
-
-