public class FormDataContentDisposition extends ContentDisposition
| Modifier and Type | Class and Description |
|---|---|
static class |
FormDataContentDisposition.FormDataContentDispositionBuilder
Builder to build form data content disposition.
|
ContentDisposition.ContentDispositionBuilder<T extends ContentDisposition.ContentDispositionBuilder<T,V>,V extends ContentDisposition>| Modifier | Constructor and Description |
|---|---|
|
FormDataContentDisposition(HttpHeaderReader reader) |
|
FormDataContentDisposition(HttpHeaderReader reader,
boolean fileNameFix) |
|
FormDataContentDisposition(java.lang.String header) |
|
FormDataContentDisposition(java.lang.String header,
boolean fileNameFix) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name parameter.
|
static FormDataContentDisposition.FormDataContentDispositionBuilder |
name(java.lang.String name)
Start building a form data content disposition.
|
protected java.lang.StringBuilder |
toStringBuffer() |
addDateParameter, addLongParameter, addStringParameter, getCreationDate, getFileName, getModificationDate, getParameters, getReadDate, getSize, getType, toString, typeprotected 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)
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.java.lang.IllegalArgumentException - if the type is not equal to "form-data"
or the name is nullpublic FormDataContentDisposition(java.lang.String header)
throws java.text.ParseException
java.text.ParseExceptionpublic FormDataContentDisposition(java.lang.String header,
boolean fileNameFix)
throws java.text.ParseException
java.text.ParseExceptionpublic FormDataContentDisposition(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseExceptionpublic FormDataContentDisposition(HttpHeaderReader reader, boolean fileNameFix) throws java.text.ParseException
java.text.ParseExceptionpublic java.lang.String getName()
protected java.lang.StringBuilder toStringBuffer()
toStringBuffer in class ContentDispositionpublic static FormDataContentDisposition.FormDataContentDispositionBuilder name(java.lang.String name)
name - the control name.Copyright © 2016 Oracle Corporation. All Rights Reserved.