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, type
protected 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 null
public FormDataContentDisposition(String header) throws ParseException
ParseException
public FormDataContentDisposition(String header, boolean fileNameFix) throws ParseException
ParseException
public FormDataContentDisposition(org.glassfish.jersey.message.internal.HttpHeaderReader reader, boolean fileNameFix) throws ParseException
ParseException
public String getName()
protected StringBuilder toStringBuffer()
toStringBuffer
in class ContentDisposition
public 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.