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,V extends ContentDisposition>| Modifier | Constructor and Description |
|---|---|
|
FormDataContentDisposition(org.glassfish.jersey.message.internal.HttpHeaderReader reader,
boolean fileNameFix) |
|
FormDataContentDisposition(String header) |
|
FormDataContentDisposition(String header,
boolean fileNameFix) |
protected |
FormDataContentDisposition(String type,
String name,
String fileName,
Date creationDate,
Date modificationDate,
Date readDate,
long size)
Constructor for the builder.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name parameter.
|
static FormDataContentDisposition.FormDataContentDispositionBuilder |
name(String name)
Start building a form data content disposition.
|
protected StringBuilder |
toStringBuffer() |
addDateParameter, addLongParameter, addStringParameter, getCreationDate, getFileName, getModificationDate, getParameters, getReadDate, getSize, getType, toString, typeprotected FormDataContentDisposition(String type, String name, String fileName, Date creationDate, Date modificationDate, 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.IllegalArgumentException - if the type is not equal to "form-data"
or the name is nullpublic FormDataContentDisposition(String header) throws ParseException
ParseExceptionpublic FormDataContentDisposition(String header, boolean fileNameFix) throws ParseException
ParseExceptionpublic FormDataContentDisposition(org.glassfish.jersey.message.internal.HttpHeaderReader reader,
boolean fileNameFix)
throws ParseException
ParseExceptionpublic String getName()
protected StringBuilder toStringBuffer()
toStringBuffer in class ContentDispositionpublic static FormDataContentDisposition.FormDataContentDispositionBuilder name(String name)
name - the control name.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.