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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
buildDirectory
(String directory) Normalized form ofGenericFileOperations.buildDirectory(String, boolean)
.final boolean
buildDirectory
(String directory, boolean absolute) void
changeCurrentDirectory
(String path) void
boolean
connect
(org.apache.camel.component.file.remote.RemoteFileConfiguration config, org.apache.camel.Exchange exchange) boolean
deleteFile
(String name) void
boolean
existsFile
(String name) void
com.azure.storage.file.share.ShareServiceClient
boolean
com.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>
void
releaseRetrievedFileResources
(org.apache.camel.Exchange exchange) boolean
renameFile
(String from, String to) boolean
retrieveFile
(String name, org.apache.camel.Exchange exchange, long size) boolean
sendNoop()
boolean
sendSiteCommand
(String command) void
setEndpoint
(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:
buildDirectory
in interfaceorg.apache.camel.component.file.GenericFileOperations<com.azure.storage.file.share.models.ShareFileItem>
- Throws:
org.apache.camel.component.file.GenericFileOperationFailedException
-