Package de.xima.fc.form.upload
Class AjaxUploadDetails.Builder
- java.lang.Object
-
- de.xima.fc.form.upload.AjaxUploadDetails.Builder
-
- Enclosing class:
- AjaxUploadDetails
public static final class AjaxUploadDetails.Builder extends Object
Simple builder for anAjaxUploadDetails
instance. All fields other than time are required!- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AjaxUploadDetails
build()
AjaxUploadDetails.Builder
contentType(String contentType)
AjaxUploadDetails.Builder
fieldName(String fieldName)
AjaxUploadDetails.Builder
fileName(String fileName)
AjaxUploadDetails.Builder
md5Sum(String md5Sum)
AjaxUploadDetails.Builder
time(long time)
-
-
-
Method Detail
-
build
public AjaxUploadDetails build()
- Returns:
- A new instance with the details of this builder.
-
contentType
public AjaxUploadDetails.Builder contentType(String contentType)
- Parameters:
contentType
- Content type of the file.- Returns:
- This builder instance for chaining method calls.
-
fieldName
public AjaxUploadDetails.Builder fieldName(String fieldName)
- Parameters:
fieldName
- Field name of the upload.- Returns:
- This builder instance for chaining method calls.
-
fileName
public AjaxUploadDetails.Builder fileName(String fileName)
- Parameters:
fileName
- Original file name of the file.- Returns:
- This builder instance for chaining method calls.
-
md5Sum
public AjaxUploadDetails.Builder md5Sum(String md5Sum)
- Parameters:
md5Sum
- Expected MD5 sum of the entire file.- Returns:
- This builder instance for chaining method calls.
-
time
public AjaxUploadDetails.Builder time(long time)
- Parameters:
time
- Time when the request was made. Note that this is not required to correspond to a physicial time, the only requirement for this number is that a larger number implies that a request was made later.- Returns:
- This builder instance for chaining method calls.
-
-