com.aspose.html.net

Class MultipartFormDataContent

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Content>, com.aspose.ms.System.Collections.IEnumerable<Content>, com.aspose.ms.System.IDisposable, java.lang.Iterable<Content>


    public class MultipartFormDataContent
    extends MultipartContent

    Represent content for multipart/form-data encoding algorithm

    • Constructor Detail

      • MultipartFormDataContent

        public MultipartFormDataContent()

        Initializes a new instance of the MultipartFormDataContent class.

      • MultipartFormDataContent

        public MultipartFormDataContent(java.lang.String boundary)

        Initializes a new instance of the MultipartFormDataContent class.

        Parameters:
        boundary - The boundary.
    • Method Detail

      • add

        public void add(Content content,
                        java.lang.String name)

        Add the content to the MultipartFormDataContent class with field name parameter

        Parameters:
        content - The content.
        name - The field name.
      • add

        public void add(Content content,
                        java.lang.String name,
                        java.lang.String fileName)

        Add the content to the MultipartFormDataContent class with field and file name parameter

        Parameters:
        content - The content.
        name - The field name.
        fileName - The file name.