Class HttpUploadFacade

java.lang.Object
org.eclipse.dirigible.api.v3.http.HttpUploadFacade
All Implemented Interfaces:
IScriptingFacade

public class HttpUploadFacade
extends Object
implements IScriptingFacade
Java facade for working uploading files.
  • Constructor Details

  • Method Details

    • isMultipartContent

      public static final boolean isMultipartContent()
      Checks if the request contains multipart content.
      Returns:
      true, if the request contains is multipart content
    • parseRequest

      public static final List<org.apache.commons.fileupload.FileItem> parseRequest() throws org.apache.commons.fileupload.FileUploadException
      Parses the request.
      Returns:
      A list of FileItem instances parsed from the request, in the order that they were transmitted.
      Throws:
      org.apache.commons.fileupload.FileUploadException - if there is a problem parsing the request
    • headerNamesToList

      public static final List<String> headerNamesToList​(Iterator<String> headerNames)
      Converts header names iterator object to list object.
      Parameters:
      headerNames - header names iterator
      Returns:
      A list of String elements which represent the name of the multipart request headers.