Class ContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder,V extends ContentDisposition>
java.lang.Object
org.glassfish.jersey.media.multipart.ContentDisposition.ContentDispositionBuilder<T,V>
- Type Parameters:
T- the builder type.V- the content disposition type.
- Direct Known Subclasses:
FormDataContentDisposition.FormDataContentDispositionBuilder
- Enclosing class:
- ContentDisposition
public static class ContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder,V extends ContentDisposition>
extends Object
Builder to build content disposition.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the content disposition.creationDate(Date creationDate) Add the "creation-date" parameter.Add the "file-name" parameter.modificationDate(Date modificationDate) Add the "modification-date" parameter.Add the "read-date" parameter.size(long size) Add the "size" parameter.
-
Field Details
-
type
-
fileName
-
creationDate
-
modificationDate
-
readDate
-
size
protected long size
-
-
Method Details
-
fileName
Add the "file-name" parameter.- Parameters:
fileName- the "file-name" parameter. If null the value is removed- Returns:
- this builder.
-
creationDate
Add the "creation-date" parameter.- Parameters:
creationDate- the "creation-date" parameter. If null the value is removed- Returns:
- this builder.
-
modificationDate
Add the "modification-date" parameter.- Parameters:
modificationDate- the "modification-date" parameter. If null the value is removed- Returns:
- this builder.
-
readDate
Add the "read-date" parameter.- Parameters:
readDate- the "read-date" parameter. If null the value is removed- Returns:
- this builder.
-
size
Add the "size" parameter.- Parameters:
size- the "size" parameter. If -1 the value is removed.- Returns:
- this builder.
-
build
Build the content disposition.- Returns:
- the content disposition.
-