Interface UploadAttacher


  • public interface UploadAttacher
    Attaches file uploads to Camel Messages.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void attachUpload​(File localFile, String fileName, org.apache.camel.Message message)
      Attach the uploaded file represented by the given localFile and fileName to the given message
    • Method Detail

      • attachUpload

        void attachUpload​(File localFile,
                          String fileName,
                          org.apache.camel.Message message)
        Attach the uploaded file represented by the given localFile and fileName to the given message
        Parameters:
        localFile - the uploaded file stored locally
        fileName - the name of the upload as sent by the client
        message - the Message to attach the upload to