Package com.adobe.forms.common.service
Class FormDataWrapper
- java.lang.Object
-
- com.adobe.forms.common.service.FormDataWrapper
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FormSubmitInfo
public class FormDataWrapper extends java.lang.Object implements java.io.Serializable
The FormDataWrapper contains form data including attachments. Form data content type could be json or xml.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormDataWrapper()
Creates form data wrapper objectFormDataWrapper(java.lang.String data, java.lang.String contentType, java.util.List<FileAttachmentWrapper> fileAttachments)
Creates form data wrapper object using data, content type & attachments
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
Returns the mime type of the submitted data.java.lang.String
getData()
Returns the submitted data of the formjava.util.List<FileAttachmentWrapper>
getFileAttachments()
Returns the list ofFileAttachmentWrapper
objects.void
setContentType(java.lang.String contentType)
Sets the mime type of the submitted datavoid
setData(java.lang.String data)
Sets the data submitted by the formvoid
setFileAttachments(java.util.List<FileAttachmentWrapper> fileAttachments)
Sets the list ofFileAttachmentWrapper
objects
-
-
-
Constructor Detail
-
FormDataWrapper
public FormDataWrapper()
Creates form data wrapper object
-
FormDataWrapper
public FormDataWrapper(java.lang.String data, java.lang.String contentType, java.util.List<FileAttachmentWrapper> fileAttachments)
Creates form data wrapper object using data, content type & attachments- Parameters:
data
- form datacontentType
- content type of the datafileAttachments
- file attachments list
-
-
Method Detail
-
getData
public java.lang.String getData()
Returns the submitted data of the form- Returns:
- data submitted
-
setData
public void setData(java.lang.String data)
Sets the data submitted by the form- Parameters:
data
- data submitted
-
getContentType
public java.lang.String getContentType()
Returns the mime type of the submitted data. For example, in case of json data, the mime type would be application/json and in case of XML, the mime type would be application/xml.- Returns:
- mime type of the data submitted
-
setContentType
public void setContentType(java.lang.String contentType)
Sets the mime type of the submitted data- Parameters:
contentType
- mime type of the submitted data
-
getFileAttachments
public java.util.List<FileAttachmentWrapper> getFileAttachments()
Returns the list ofFileAttachmentWrapper
objects. This list contains the file attachment submitted- Returns:
- list of
FileAttachmentWrapper
objects
-
setFileAttachments
public void setFileAttachments(java.util.List<FileAttachmentWrapper> fileAttachments)
Sets the list ofFileAttachmentWrapper
objects- Parameters:
fileAttachments
- list ofFileAttachmentWrapper
objects
-
-