public class FormWithFiles extends Form
MediaType.MULTIPART_FORM_DATA
entities by
accepting file uploads. Files will appear as parameters of type
FileParameter
.EMPTY_VALUE
Constructor and Description |
---|
FormWithFiles(Representation webForm)
Construction with default system repository directory.
|
FormWithFiles(Representation webForm,
org.apache.commons.fileupload.FileItemFactory fileItemFactory)
Constructor.
|
FormWithFiles(Representation webForm,
int sizeThreshold,
File repositoryDirectory)
Constructor.
|
createEntry, encode, encode, encode, getMatrixString, getMatrixString, getQueryString, getQueryString, getWebRepresentation, getWebRepresentation
add, copyTo, getFirst, getFirst, getFirstValue, getFirstValue, getFirstValue, getFirstValue, getNames, getValues, getValues, getValuesArray, getValuesArray, getValuesArray, getValuesArray, getValuesMap, removeAll, removeAll, removeFirst, removeFirst, set, set, subList, subList, subList, unmodifiableSeries
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public FormWithFiles(Representation webForm) throws ResourceException
webForm
- The URL encoded web formResourceException
- In case of an upload handling errorpublic FormWithFiles(Representation webForm, int sizeThreshold, File repositoryDirectory) throws ResourceException
webForm
- The URL encoded web formsizeThreshold
- The size in bytes beyond which files will be stored to diskrepositoryDirectory
- The directory in which to place uploaded filesResourceException
- In case of an upload handling errorpublic FormWithFiles(Representation webForm, org.apache.commons.fileupload.FileItemFactory fileItemFactory) throws ResourceException
webForm
- The URL encoded web formfileItemFactory
- The file item factoryResourceException
- In case of an upload handling errorCopyright © 2009-2016 Three Crickets LLC.