Interface GenericFileBinding<T>

All Known Implementing Classes:
FileBinding, GenericFileDefaultBinding

public interface GenericFileBinding<T>
Binding between the generic file and the body content.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the body of the file
    void
    loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file)
    Ensures the content is loaded from the file into memory
    void
    setBody(GenericFile<T> file, Object body)
    Sets the body from the given file
  • Method Details

    • 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