Class RemoteFile<T>

  • Type Parameters:
    T - the type of file that these remote endpoints provide
    All Implemented Interfaces:
    Cloneable, org.apache.camel.WrappedFile<T>

    public class RemoteFile<T>
    extends org.apache.camel.component.file.GenericFile<T>
    implements Cloneable
    Represents a remote file of some sort of backing object
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteFile()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyFromPopulateAdditional​(org.apache.camel.component.file.GenericFile<T> source, org.apache.camel.component.file.GenericFile<T> result)  
      char getFileSeparator()  
      String getHostname()  
      protected boolean isAbsolute​(String name)  
      protected String normalizePath​(String name)  
      void populateHeaders​(org.apache.camel.component.file.GenericFileMessage<T> message)
      Populates the GenericFileMessage relevant headers
      void populateHeaders​(org.apache.camel.component.file.GenericFileMessage<T> message, boolean isProbeContentTypeFromEndpoint)  
      void setHostname​(String hostname)  
      String toString()  
      • Methods inherited from class org.apache.camel.component.file.GenericFile

        bindToExchange, bindToExchange, changeFileName, copyFrom, getAbsoluteFilePath, getBinding, getBody, getCharset, getCopyFromAbsoluteFilePath, getEndpointPath, getExtendedAttributes, getFile, getFileLength, getFileName, getFileNameOnly, getLastModified, getLastOffsetValue, getParent, getRelativeFilePath, isAbsolute, isDirectory, normalizePathToProtocol, setAbsolute, setAbsoluteFilePath, setBinding, setBody, setCharset, setCopyFromAbsoluteFilePath, setDirectory, setEndpointPath, setExtendedAttributes, setFile, setFileLength, setFileName, setFileNameOnly, setLastModified, setRelativeFilePath, updateLastOffsetValue
    • Constructor Detail

      • RemoteFile

        public RemoteFile()
    • Method Detail

      • populateHeaders

        public void populateHeaders​(org.apache.camel.component.file.GenericFileMessage<T> message)
        Populates the GenericFileMessage relevant headers
        Parameters:
        message - the message to populate with headers
      • populateHeaders

        public void populateHeaders​(org.apache.camel.component.file.GenericFileMessage<T> message,
                                    boolean isProbeContentTypeFromEndpoint)
        Overrides:
        populateHeaders in class org.apache.camel.component.file.GenericFile<T>
      • getHostname

        public String getHostname()
      • setHostname

        public void setHostname​(String hostname)
      • getFileSeparator

        public char getFileSeparator()
        Overrides:
        getFileSeparator in class org.apache.camel.component.file.GenericFile<T>
      • isAbsolute

        protected boolean isAbsolute​(String name)
        Overrides:
        isAbsolute in class org.apache.camel.component.file.GenericFile<T>
      • normalizePath

        protected String normalizePath​(String name)
        Overrides:
        normalizePath in class org.apache.camel.component.file.GenericFile<T>
      • copyFromPopulateAdditional

        public void copyFromPopulateAdditional​(org.apache.camel.component.file.GenericFile<T> source,
                                               org.apache.camel.component.file.GenericFile<T> result)
        Overrides:
        copyFromPopulateAdditional in class org.apache.camel.component.file.GenericFile<T>
      • toString

        public String toString()
        Overrides:
        toString in class org.apache.camel.component.file.GenericFile<T>