Class LocalObjectPath
- java.lang.Object
-
- jenkins.plugins.itemstorage.ObjectPath
-
- jenkins.plugins.itemstorage.local.LocalObjectPath
-
public class LocalObjectPath extends ObjectPath
This implements the on-controller storage for object paths.- Author:
- Peter Hayes
-
-
Constructor Summary
Constructors Constructor Description LocalObjectPath(FilePath file)
-
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 UIObjectPath
child(String path)
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 existsprotected String
getPath()
-
-
-
Constructor Detail
-
LocalObjectPath
public LocalObjectPath(FilePath file)
-
-
Method Detail
-
child
public ObjectPath child(String path) throws IOException, InterruptedException
Description copied from class:ObjectPath
Get a relative child path of this ObjectPath- Specified by:
child
in classObjectPath
- Parameters:
path
- 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)
Description copied from class:ObjectPath
Support browsing the cache via UI- Specified by:
browse
in classObjectPath
- Returns:
-
getPath
protected String getPath()
-
-