Class IncendoPaster


  • public final class IncendoPaster
    extends Object
    Single class paster for the Incendo paste service
    • Constructor Detail

      • IncendoPaster

        public IncendoPaster​(String pasteApplication)
        Construct a new paster
        Parameters:
        pasteApplication - The application that is sending the paste
    • Method Detail

      • getFiles

        public final Collection<IncendoPaster.PasteFile> getFiles()
        Get an immutable collection containing all the files that have been added to this paster
        Returns:
        Unmodifiable collection
      • addFile

        public void addFile​(IncendoPaster.PasteFile file)
        Add a file to the paster
        Parameters:
        file - File to paste
      • upload

        public final String upload()
                            throws Throwable
        Upload the paste and return the status message
        Returns:
        Status message
        Throws:
        Throwable - any and all exceptions