Interface UHReceiver

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
UHMultiFileReceiver
All Known Implementing Classes:
UHFileBuffer, UHMemoryBuffer, UHMultiFileBuffer, UHMultiFileMemoryBuffer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface UHReceiver
extends java.io.Serializable
  • Method Summary

    Modifier and Type Method Description
    java.io.OutputStream receiveUpload​(java.lang.String fileName, java.lang.String mimeType)
    Invoked when a new upload arrives.
  • Method Details

    • receiveUpload

      java.io.OutputStream receiveUpload​(java.lang.String fileName, java.lang.String mimeType)
      Invoked when a new upload arrives.
      Parameters:
      fileName - the desired filename of the upload, usually as specified by the client
      mimeType - the MIME type of the uploaded file
      Returns:
      stream to which the uploaded file should be written