Package jenkins.plugins.itemstorage.s3
Class S3ObjectPath
- java.lang.Object
-
- jenkins.plugins.itemstorage.ObjectPath
-
- jenkins.plugins.itemstorage.s3.S3ObjectPath
-
public class S3ObjectPath extends ObjectPath
Implements ObjectPath API- Author:
- Peter Hayes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
browse(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Job<?,?> job, String name)
Support browsing the cache via UIS3ObjectPath
child(String childPath)
Get a relative child path of this ObjectPathvoid
copyFrom(FilePath source)
void
copyTo(FilePath target)
void
deleteRecursive()
Recursively delete all contents within the pathboolean
exists()
Check if this path actually exists
-
-
-
Method Detail
-
child
public S3ObjectPath child(String childPath) throws IOException, InterruptedException
Description copied from class:ObjectPath
Get a relative child path of this ObjectPath- Specified by:
child
in classObjectPath
- Parameters:
childPath
- The relative path- Returns:
- The child instance
- Throws:
IOException
InterruptedException
-
copyTo
public void copyTo(FilePath target) throws IOException, InterruptedException
- Specified by:
copyTo
in classObjectPath
- Throws:
IOException
InterruptedException
-
copyFrom
public void copyFrom(FilePath source) throws IOException, InterruptedException
- Specified by:
copyFrom
in classObjectPath
- Throws:
IOException
InterruptedException
-
exists
public boolean exists() throws IOException, InterruptedException
Description copied from class:ObjectPath
Check if this path actually exists- Specified by:
exists
in classObjectPath
- Returns:
- true if so, false otherwise
- Throws:
IOException
InterruptedException
-
deleteRecursive
public void deleteRecursive() throws IOException, InterruptedException
Description copied from class:ObjectPath
Recursively delete all contents within the path- Specified by:
deleteRecursive
in classObjectPath
- Throws:
IOException
InterruptedException
-
browse
public org.kohsuke.stapler.HttpResponse browse(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Job<?,?> job, String name) throws IOException
Description copied from class:ObjectPath
Support browsing the cache via UI- Specified by:
browse
in classObjectPath
- Returns:
- Throws:
IOException
-
-