Class UrlBasedFileStore
- java.lang.Object
-
- org.craftercms.commons.file.stores.impl.UrlBasedFileStore
-
- All Implemented Interfaces:
RemoteFileStore
public class UrlBasedFileStore extends Object implements RemoteFileStore
SimpleRemoteFileStore
where the paths are basically URLs from where the files can be accessed.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description UrlBasedFileStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteFile
getFile(RemotePath path)
Resolves the givenRemotePath
as aRemoteFile
.
-
-
-
Method Detail
-
getFile
public RemoteFile getFile(RemotePath path) throws IOException
Description copied from interface:RemoteFileStore
Resolves the givenRemotePath
as aRemoteFile
.- Specified by:
getFile
in interfaceRemoteFileStore
- Parameters:
path
- the path to the file in the remote store- Returns:
- the remote file
- Throws:
IOException
- if an IO error occurs while trying to resolve the remote file
-
-