public class FormData extends Object implements FormInstance
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.fileupload.RequestContext |
ctx |
static String |
DOCTYPE |
protected static org.apache.commons.fileupload.servlet.ServletFileUpload |
fu |
protected boolean |
isMultipart |
protected Map<String,List<org.apache.commons.fileupload.FileItem>> |
items |
static String |
MAJOR |
static String |
MINOR |
static String |
PROPERTY |
protected javax.servlet.http.HttpServletRequest |
request |
static String |
TITLE |
static String |
VERSIONING |
Constructor and Description |
---|
FormData(javax.servlet.http.HttpServletRequest request) |
public static final String PROPERTY
public static final String TITLE
public static final String DOCTYPE
public static final String VERSIONING
public static final String MAJOR
public static final String MINOR
protected static org.apache.commons.fileupload.servlet.ServletFileUpload fu
protected final javax.servlet.http.HttpServletRequest request
protected boolean isMultipart
protected org.apache.commons.fileupload.RequestContext ctx
public FormData(javax.servlet.http.HttpServletRequest request)
protected boolean getIsMultipartContent()
public boolean isMultipartContent()
public Map<String,String[]> getFormFields()
getFormFields
in interface FormDataProvider
getFormFields
in interface FormInstance
public Map<String,String[]> getMultiPartFormFields()
public Map<String,List<org.apache.commons.fileupload.FileItem>> getMultiPartItems()
public Collection<String> getKeys()
getKeys
in interface FormDataProvider
public Blob getBlob(String key)
getBlob
in interface FormInstance
public Blob[] getBlobs(String key)
getBlobs
in interface FormInstance
public Map<String,Blob[]> getBlobFields()
getBlobFields
in interface FormInstance
public Blob getFirstBlob()
public final org.apache.commons.fileupload.FileItem getFileItem(String key)
public final List<org.apache.commons.fileupload.FileItem> getFileItems(String key)
public String getMultiPartFormProperty(String key)
public String[] getMultiPartFormListProperty(String key)
public Object[] getMultiPartFormItems(String key)
key
- public Object[] getMultiPartFormItems(List<org.apache.commons.fileupload.FileItem> list)
public final Object getFileItemValue(org.apache.commons.fileupload.FileItem item)
public String getFormProperty(String key)
public String[] getFormListProperty(String key)
public String getString(String key)
getString
in interface FormDataProvider
public String[] getList(String key)
getList
in interface FormDataProvider
public Object[] get(String key)
get
in interface FormInstance
public void fillDocument(DocumentModel doc)
fillDocument
in interface FormInstance
public void fillDocumentFromForm(DocumentModel doc) throws PropertyException
PropertyException
public void fillDocumentFromMultiPartForm(DocumentModel doc) throws PropertyException
PropertyException
public VersioningOption getVersioningOption()
public String getDocumentType()
public String getDocumentTitle()
public <T extends Form> T validate(Class<T> type) throws ValidationException
ValidationException
Copyright © 2016 Nuxeo SA. All rights reserved.