Module io.helidon.media.multipart
Package io.helidon.media.multipart
Class ReadableBodyPartHeaders.Builder
- java.lang.Object
-
- io.helidon.media.multipart.ReadableBodyPartHeaders.Builder
-
- All Implemented Interfaces:
Builder<ReadableBodyPartHeaders>
,Supplier<ReadableBodyPartHeaders>
- Enclosing class:
- ReadableBodyPartHeaders
public static final class ReadableBodyPartHeaders.Builder extends Object implements Builder<ReadableBodyPartHeaders>
Builder class to createReadableBodyPartHeaders
instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadableBodyPartHeaders
build()
Build the instance from this builder.ReadableBodyPartHeaders.Builder
header(String name, String value)
Add a new header.ReadableBodyPartHeaders.Builder
header(String name, List<String> values)
Add a new header.ReadableBodyPartHeaders.Builder
headers(Map<String,List<String>> headers)
Add new headers.
-
-
-
Method Detail
-
header
public ReadableBodyPartHeaders.Builder header(String name, String value)
Add a new header.- Parameters:
name
- header namevalue
- header value- Returns:
- this builder
-
header
public ReadableBodyPartHeaders.Builder header(String name, List<String> values)
Add a new header.- Parameters:
name
- header namevalues
- header values- Returns:
- this builder
-
headers
public ReadableBodyPartHeaders.Builder headers(Map<String,List<String>> headers)
Add new headers.- Parameters:
headers
- headers map- Returns:
- this builder
-
build
public ReadableBodyPartHeaders build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ReadableBodyPartHeaders>
- Returns:
- instance of the built type
-
-