Class FormDataContentDisposition
java.lang.Object
org.glassfish.jersey.media.multipart.ContentDisposition
org.glassfish.jersey.media.multipart.FormDataContentDisposition
A form-data content disposition header.
- Author:
- Paul Sandoz, imran@smartitengineering.com, Marek Potociar
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder to build form data content disposition.Nested classes/interfaces inherited from class org.glassfish.jersey.media.multipart.ContentDispositionContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder,V extends ContentDisposition> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionFormDataContentDisposition(String header) FormDataContentDisposition(String header, boolean fileNameFix) protectedFormDataContentDisposition(String type, String name, String fileName, Date creationDate, Date modificationDate, Date readDate, long size) Constructor for the builder.FormDataContentDisposition(HttpHeaderReader reader, boolean fileNameFix) 
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Get the name parameter.Start building a form data content disposition.protected StringBuilderMethods inherited from class org.glassfish.jersey.media.multipart.ContentDispositionaddDateParameter, addLongParameter, addStringParameter, getCreationDate, getFileName, getModificationDate, getParameters, getReadDate, getSize, getType, toString, type
- 
Constructor Details- 
FormDataContentDispositionprotected FormDataContentDisposition(String type, String name, String fileName, Date creationDate, Date modificationDate, 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:
- IllegalArgumentException- if the type is not equal to "form-data" or the name is- null
 
- 
FormDataContentDisposition- Throws:
- ParseException
 
- 
FormDataContentDisposition- Throws:
- ParseException
 
- 
FormDataContentDispositionpublic FormDataContentDisposition(HttpHeaderReader reader, boolean fileNameFix) throws ParseException - Throws:
- ParseException
 
 
- 
- 
Method Details- 
getNameGet the name parameter.- Returns:
- the name
 
- 
toStringBuffer- Overrides:
- toStringBufferin class- ContentDisposition
 
- 
nameStart building a form data content disposition.- Parameters:
- name- the control name.
- Returns:
- the form data content disposition builder.
 
 
-