Class 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 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 data
        contentType - content type of the data
        fileAttachments - 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