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>
Operations with locally tracked cwd state.
The state limits thread safety.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuildDirectory(String directory) Normalized form ofGenericFileOperations.buildDirectory(String, boolean).final booleanbuildDirectory(String directory, boolean absolute) voidchangeCurrentDirectory(String path) voidbooleanconnect(org.apache.camel.component.file.remote.RemoteFileConfiguration config, org.apache.camel.Exchange exchange) booleandeleteFile(String name) voidbooleanexistsFile(String name) voidcom.azure.storage.file.share.ShareServiceClientbooleancom.azure.storage.file.share.models.ShareFileItem[]com.azure.storage.file.share.models.ShareFileItem[]org.apache.camel.component.file.GenericFile<com.azure.storage.file.share.models.ShareFileItem> voidreleaseRetrievedFileResources(org.apache.camel.Exchange exchange) booleanrenameFile(String from, String to) booleanretrieveFile(String name, org.apache.camel.Exchange exchange, long size) booleansendNoop()booleansendSiteCommand(String command) voidsetEndpoint(org.apache.camel.component.file.GenericFileEndpoint<com.azure.storage.file.share.models.ShareFileItem> endpoint) boolean
-
Field Details
-
HTTPS
- See Also:
-
-
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 ofGenericFileOperations.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:
buildDirectoryin interfaceorg.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem>- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-