Package com.axelor.common.http
Class ContentDisposition.Builder
- java.lang.Object
-
- com.axelor.common.http.ContentDisposition.Builder
-
- Enclosing class:
- ContentDisposition
public static class ContentDisposition.Builder extends Object
Builder forContentDisposition
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentDisposition
build()
Build the content dispositionContentDisposition.Builder
filename(String filename)
Set the filename parameterContentDisposition.Builder
name(String name)
Set the name parameter.
-
-
-
Constructor Detail
-
Builder
public Builder(String type)
Builder for the given content disposition type- Parameters:
type
- the content disposition type
-
-
Method Detail
-
name
public ContentDisposition.Builder name(String name)
Set the name parameter.- Parameters:
name
- the name- Returns:
- the
Builder
-
filename
public ContentDisposition.Builder filename(String filename)
Set the filename parameter- Parameters:
filename
- the filename- Returns:
- the
Builder
-
build
public ContentDisposition build()
Build the content disposition- Returns:
- the
ContentDisposition
-
-