org.apache.camel.component.file.remote
Class RemoteFile<T>

java.lang.Object
  extended by org.apache.camel.component.file.GenericFile<T>
      extended by org.apache.camel.component.file.remote.RemoteFile<T>
Type Parameters:
T - the type of file that these remote endpoints provide
All Implemented Interfaces:
Cloneable

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
RemoteFile()
           
 
Method Summary
 void copyFromPopulateAdditional(org.apache.camel.component.file.GenericFile source, org.apache.camel.component.file.GenericFile 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 setHostname(String hostname)
           
 
Methods inherited from class org.apache.camel.component.file.GenericFile
bindToExchange, changeFileName, copyFrom, getAbsoluteFilePath, getBinding, getBody, getEndpointPath, getFile, getFileLength, getFileName, getFileNameOnly, getLastModified, getParent, getRelativeFilePath, isAbsolute, normalizePathToProtocol, setAbsolute, setAbsoluteFilePath, setBinding, setBody, setEndpointPath, setFile, setFileLength, setFileName, setFileNameOnly, setLastModified, setRelativeFilePath, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteFile

public RemoteFile()
Method Detail

populateHeaders

public void populateHeaders(org.apache.camel.component.file.GenericFileMessage<T> message)
Populates the GenericFileMessage relevant headers

Overrides:
populateHeaders in class org.apache.camel.component.file.GenericFile<T>
Parameters:
message - the message to populate with headers

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 source,
                                       org.apache.camel.component.file.GenericFile result)
Overrides:
copyFromPopulateAdditional in class org.apache.camel.component.file.GenericFile<T>


Apache CAMEL