Interface GenericFileBinding<T>

    • Method Detail

      • getBody

        Object getBody​(GenericFile<T> file)
        Gets the body of the file
        Parameters:
        file - the file
        Returns:
        the body
      • setBody

        void setBody​(GenericFile<T> file,
                     Object body)
        Sets the body from the given file
        Parameters:
        file - the file
        body - the body
      • loadContent

        void loadContent​(org.apache.camel.Exchange exchange,
                         GenericFile<?> file)
                  throws IOException
        Ensures the content is loaded from the file into memory
        Parameters:
        exchange - the current exchange
        file - the file
        Throws:
        IOException - is thrown if the content could not be loaded