Class ContentDisposition.Builder
java.lang.Object
de.xima.fc.http.ContentDisposition.Builder
- Enclosing class:
ContentDisposition
A simple builder for
ContentDisposition.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a content disposition with the current settings.Creates the value for a content disposition HTTP header with the current settings.Sets the charset for encoding the filename.Sets the filename of the file.Sets the name of the HTML field in the form that the content of this sub part refers to.
-
Method Details
-
build
Creates a content disposition with the current settings. Subsequent changes to this builder do not affect the returned ContentDisposition.- Returns:
- The new content disposition.
-
buildHeaderValue
Creates the value for a content disposition HTTP header with the current settings.- Returns:
- The header value.
-
charset
Sets the charset for encoding the filename.- Parameters:
charset- The charset.- Returns:
- This builder.
-
fileName
Sets the filename of the file.- Parameters:
fileName- The filename.- Returns:
- This builder.
-
name
Sets the name of the HTML field in the form that the content of this sub part refers to.- Parameters:
name- The name.- Returns:
- This builder.
-