Package jenkins.plugins.itemstorage
Class ObjectPath
java.lang.Object
jenkins.plugins.itemstorage.ObjectPath
- Direct Known Subclasses:
LocalObjectPath
,S3ObjectPath
The abstraction to interact with a particular object path
- Author:
- Peter Hayes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.kohsuke.stapler.HttpResponse
browse
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Job<?, ?> job, String name) Support browsing the cache via UIabstract ObjectPath
Get a relative child path of this ObjectPathabstract void
abstract void
abstract void
Recursively delete all contents within the pathabstract boolean
exists()
Check if this path actually exists
-
Constructor Details
-
ObjectPath
public ObjectPath()
-
-
Method Details
-
child
Get a relative child path of this ObjectPath- Parameters:
path
- The relative path- Returns:
- The child instance
- Throws:
IOException
InterruptedException
-
copyTo
- Throws:
IOException
InterruptedException
-
copyFrom
- Throws:
IOException
InterruptedException
-
exists
Check if this path actually exists- Returns:
- true if so, false otherwise
- Throws:
IOException
InterruptedException
-
deleteRecursive
Recursively delete all contents within the path- Throws:
IOException
InterruptedException
-
browse
public abstract org.kohsuke.stapler.HttpResponse browse(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Job<?, ?> job, String name) throws IOExceptionSupport browsing the cache via UI- Parameters:
job
-- Returns:
- Throws:
IOException
-