Class FormDataContentDisposition
- java.lang.Object
-
- org.glassfish.jersey.media.multipart.ContentDisposition
-
- org.glassfish.jersey.media.multipart.FormDataContentDisposition
-
public class FormDataContentDisposition extends ContentDisposition
A form-data content disposition header.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormDataContentDisposition.FormDataContentDispositionBuilderBuilder to build form data content disposition.-
Nested classes/interfaces inherited from class org.glassfish.jersey.media.multipart.ContentDisposition
ContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder,V extends ContentDisposition>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description FormDataContentDisposition(java.lang.String header)FormDataContentDisposition(java.lang.String header, boolean fileNameFix)protectedFormDataContentDisposition(java.lang.String type, java.lang.String name, java.lang.String fileName, java.util.Date creationDate, java.util.Date modificationDate, java.util.Date readDate, long size)Constructor for the builder.FormDataContentDisposition(HttpHeaderReader reader, boolean fileNameFix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Get the name parameter.static FormDataContentDisposition.FormDataContentDispositionBuildername(java.lang.String name)Start building a form data content disposition.protected java.lang.StringBuildertoStringBuffer()-
Methods inherited from class org.glassfish.jersey.media.multipart.ContentDisposition
addDateParameter, addLongParameter, addStringParameter, getCreationDate, getFileName, getModificationDate, getParameters, getReadDate, getSize, getType, toString, type
-
-
-
-
Constructor Detail
-
FormDataContentDisposition
protected FormDataContentDisposition(java.lang.String type, java.lang.String name, java.lang.String fileName, java.util.Date creationDate, java.util.Date modificationDate, java.util.Date readDate, long size)Constructor for the builder.- Parameters:
type- the disposition type. will be "form-data".name- the control name.fileName- the file name.creationDate- the creation date.modificationDate- the modification date.readDate- the read date.size- the size.- Throws:
java.lang.IllegalArgumentException- if the type is not equal to "form-data" or the name isnull
-
FormDataContentDisposition
public FormDataContentDisposition(java.lang.String header) throws java.text.ParseException- Throws:
java.text.ParseException
-
FormDataContentDisposition
public FormDataContentDisposition(java.lang.String header, boolean fileNameFix) throws java.text.ParseException- Throws:
java.text.ParseException
-
FormDataContentDisposition
public FormDataContentDisposition(HttpHeaderReader reader, boolean fileNameFix) throws java.text.ParseException
- Throws:
java.text.ParseException
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name parameter.- Returns:
- the name
-
toStringBuffer
protected java.lang.StringBuilder toStringBuffer()
- Overrides:
toStringBufferin classContentDisposition
-
name
public static FormDataContentDisposition.FormDataContentDispositionBuilder name(java.lang.String name)
Start building a form data content disposition.- Parameters:
name- the control name.- Returns:
- the form data content disposition builder.
-
-