Class LocalObjectPath
java.lang.Object
jenkins.plugins.itemstorage.ObjectPath
jenkins.plugins.itemstorage.local.LocalObjectPath
This implements the on-controller storage for object paths.
- Author:
- Peter Hayes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsebrowse(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response, Job<?, ?> job, String name) Support browsing the cache via UIGet a relative child path of this ObjectPathvoidvoidvoidRecursively delete all contents within the pathbooleanexists()Check if this path actually existsprotected StringgetPath()
-
Constructor Details
-
LocalObjectPath
-
-
Method Details
-
child
Description copied from class:ObjectPathGet a relative child path of this ObjectPath- Specified by:
childin classObjectPath- Parameters:
path- The relative path- Returns:
- The child instance
- Throws:
IOExceptionInterruptedException
-
copyTo
- Specified by:
copyToin classObjectPath- Throws:
IOExceptionInterruptedException
-
copyFrom
- Specified by:
copyFromin classObjectPath- Throws:
IOExceptionInterruptedException
-
exists
Description copied from class:ObjectPathCheck if this path actually exists- Specified by:
existsin classObjectPath- Returns:
- true if so, false otherwise
- Throws:
IOExceptionInterruptedException
-
deleteRecursive
Description copied from class:ObjectPathRecursively delete all contents within the path- Specified by:
deleteRecursivein classObjectPath- Throws:
IOExceptionInterruptedException
-
browse
public org.kohsuke.stapler.HttpResponse browse(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response, Job<?, ?> job, String name) Description copied from class:ObjectPathSupport browsing the cache via UI- Specified by:
browsein classObjectPath- Returns:
-
getPath
-