- java.lang.Object
-
- io.helidon.common.http.ReadOnlyParameters
-
- io.helidon.media.multipart.ReadableBodyPartHeaders
-
- All Implemented Interfaces:
Headers
,Parameters
,BodyPartHeaders
public final class ReadableBodyPartHeaders extends ReadOnlyParameters implements BodyPartHeaders
Readable body part headers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadableBodyPartHeaders.Builder
Builder class to createReadableBodyPartHeaders
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReadableBodyPartHeaders.Builder
builder()
Create a new builder instance.ContentDisposition
contentDisposition()
Get theContent-Disposition
header.MediaType
contentType()
Get theContent-Type
header.static ReadableBodyPartHeaders
create()
Create a new instance ofReadableBodyPartHeaders
.-
Methods inherited from class io.helidon.common.http.ReadOnlyParameters
add, add, addAll, all, computeIfAbsent, computeSingleIfAbsent, empty, first, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
contentDisposition
public ContentDisposition contentDisposition()
Description copied from interface:BodyPartHeaders
Get theContent-Disposition
header.- Specified by:
contentDisposition
in interfaceBodyPartHeaders
- Returns:
- ContentDisposition, never
null
-
builder
public static ReadableBodyPartHeaders.Builder builder()
Create a new builder instance.- Returns:
- Builder
-
create
public static ReadableBodyPartHeaders create()
Create a new instance ofReadableBodyPartHeaders
.- Returns:
- ReadableBodyPartHeaders
-
-