Class FilesOperations

java.lang.Object
org.apache.camel.component.file.azure.FilesOperations
All Implemented Interfaces:
org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem>, org.apache.camel.component.file.remote.RemoteFileOperations<com.azure.storage.file.share.models.ShareFileItem>

public class FilesOperations extends Object
Operations with locally tracked cwd state.

The state limits thread safety.

  • Field Details

  • Method Details

    • setEndpoint

      public void setEndpoint(org.apache.camel.component.file.GenericFileEndpoint<com.azure.storage.file.share.models.ShareFileItem> endpoint)
    • newGenericFile

      public org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> newGenericFile()
    • connect

      public boolean connect(org.apache.camel.component.file.remote.RemoteFileConfiguration config, org.apache.camel.Exchange exchange) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • isConnected

      public boolean isConnected()
    • disconnect

      public void disconnect()
    • forceDisconnect

      public void forceDisconnect() throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • deleteFile

      public boolean deleteFile(String name) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • renameFile

      public boolean renameFile(String from, String to) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • buildDirectory

      public boolean buildDirectory(String directory) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Normalized form of GenericFileOperations.buildDirectory(String, boolean).
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • retrieveFile

      public boolean retrieveFile(String name, org.apache.camel.Exchange exchange, long size) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • releaseRetrievedFileResources

      public void releaseRetrievedFileResources(org.apache.camel.Exchange exchange) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • storeFile

      public boolean storeFile(String name, org.apache.camel.Exchange exchange, long size) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • existsFile

      public boolean existsFile(String name) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • getCurrentDirectory

      public String getCurrentDirectory() throws org.apache.camel.component.file.GenericFileOperationFailedException
      Returns:
      a relative path, from the share root, of the current directory
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • changeCurrentDirectory

      public void changeCurrentDirectory(String path) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • changeToParentDirectory

      public void changeToParentDirectory() throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • listFiles

      public com.azure.storage.file.share.models.ShareFileItem[] listFiles() throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • listFiles

      public com.azure.storage.file.share.models.ShareFileItem[] listFiles(String path) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • sendNoop

      public boolean sendNoop() throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • sendSiteCommand

      public boolean sendSiteCommand(String command) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException
    • getClient

      public com.azure.storage.file.share.ShareServiceClient getClient()
    • buildDirectory

      public final boolean buildDirectory(String directory, boolean absolute) throws org.apache.camel.component.file.GenericFileOperationFailedException
      Specified by:
      buildDirectory in interface org.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem>
      Throws:
      org.apache.camel.component.file.GenericFileOperationFailedException