Package de.esoco.data

Schnittstelle UploadHandler


public interface UploadHandler
An interface that defines the handling of an HTTP file upload.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    processUploadData(String filename, String contentType, InputStream dataStream)
    Must be implemented to process the uploaded data.
  • Methodendetails

    • processUploadData

      void processUploadData(String filename, String contentType, InputStream dataStream) throws Exception
      Must be implemented to process the uploaded data. The actual data must be read from the given input stream and stored as needed by the implementation.
      Parameter:
      filename - The file name of the upload
      contentType - The MIME type of the uploaded data
      dataStream - The input stream that provides the upload data
      Löst aus:
      Exception - Any kind of exception may be thrown if the data processing fails