Module io.helidon.media.multipart
Package io.helidon.media.multipart
Class WriteableBodyPartHeaders.Builder
java.lang.Object
io.helidon.media.multipart.WriteableBodyPartHeaders.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<WriteableBodyPartHeaders.Builder,,WriteableBodyPartHeaders> Supplier<WriteableBodyPartHeaders>
- Enclosing class:
- WriteableBodyPartHeaders
public static final class WriteableBodyPartHeaders.Builder
extends Object
implements io.helidon.common.Builder<WriteableBodyPartHeaders.Builder,WriteableBodyPartHeaders>
Builder class to create
WriteableBodyPartHeaders instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()contentDisposition(ContentDisposition contentDisp) Add aContent-Dispositionheader.contentType(MediaType contentType) Add aContent-Typeheader.Filename which will be used inContentDisposition.Add a new header.Add a new header.Add new headers.Name which will be used inContentDisposition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Method Details
-
header
Add a new header.- Parameters:
name- header namevalue- header value- Returns:
- this builder
-
header
Add a new header.- Parameters:
name- header namevalues- header values- Returns:
- this builder
-
headers
Add new headers.- Parameters:
headers- headers map- Returns:
- this builder
-
contentType
Add aContent-Typeheader.- Parameters:
contentType- value for theContent-Typeheader- Returns:
- this builder
-
contentDisposition
Add aContent-Dispositionheader.- Parameters:
contentDisp- content disposition- Returns:
- this builder
-
name
Name which will be used inContentDisposition.
This value will be ignored if an actual instance ofContentDispositionis set.- Parameters:
name- content disposition name parameter- Returns:
- this builder
-
filename
Filename which will be used inContentDisposition.
This value will be ignored if an actual instance ofContentDispositionis set.- Parameters:
fileName- content disposition filename parameter- Returns:
- this builder
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<WriteableBodyPartHeaders.Builder,WriteableBodyPartHeaders>
-