Opal file resource getter
Opal file resource getter
     
    
    
    Details
    Access a file that is stored in a Opal server. Use Basic authentication header if both
resource's identity and secret are defined, token authentication if secret only is defined.
     
    
    
    Methods
    
Inherited methods
Method new()
Creates a new OpalFileResourceGetter instance.
Returns
A OpalFileResourceGetter object.
 
 
Method isFor()
Check that the provided resource has a URL that locates a Opal file: the URL scheme must be "opal+http" or "opal+https" and the path must designate a file web service entry point (i.e. starts with "ws/files/").
Usage
OpalFileResourceGetter$isFor(resource)
 
Arguments
- resource
- The resource object to validate. 
 
 
Method downloadFile()
Download the file from the Opal file system in a temporary location.
Usage
OpalFileResourceGetter$downloadFile(resource, ...)
 
Arguments
- resource
- A valid resource object. 
- ...
- Unused additional parameters. 
 
Returns
The "resource.file" object.
 
 
Method clone()
The objects of this class are cloneable with this method.
Usage
OpalFileResourceGetter$clone(deep = FALSE)
 
Arguments
- deep
- Whether to make a deep clone.