public class SafeArchiveServingAction extends Object implements hudson.model.Action
| Constructor and Description |
|---|
SafeArchiveServingAction(File rootDir,
String urlName,
String indexFile,
String iconName,
String title,
String... safeExtensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
String |
getDisplayName() |
String |
getIconFileName() |
File |
getRootDir() |
String |
getUrlName() |
void |
processDirectory()
Record the checksums of files in the specified directory and its descendants unless a file type is whitelisted as
safe.
|
public void processDirectory()
throws NoSuchAlgorithmException,
IOException
NoSuchAlgorithmException - If the platform does unexpectedly not support SHA-1IOExceptionpublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic File getRootDir()
public void doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2016–2017. All rights reserved.