Package hudson.util
Class FormFieldValidator.Executable
- java.lang.Object
-
- hudson.util.FormFieldValidator
-
- hudson.util.FormFieldValidator.Executable
-
- Enclosing class:
- FormFieldValidator
@Deprecated public static class FormFieldValidator.Executable extends FormFieldValidator
Deprecated.as of 1.294. UseFormValidation.validateExecutable(String)
Checks a valid executable binary (specified in the 'value' query parameter). It has to be either given as a full path to the executable, or else it will be searched in PATH.This file also handles ".exe" omission in Windows --- I thought Windows has actually more generic mechanism for the executable extension omission, so perhaps this needs to be extended to handle that correctly. More info needed.
- Since:
- 1.124
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.util.FormFieldValidator
FormFieldValidator.Base64, FormFieldValidator.Executable, FormFieldValidator.HudsonURL, FormFieldValidator.NonNegativeInteger, FormFieldValidator.URLCheck, FormFieldValidator.WorkspaceDirectory, FormFieldValidator.WorkspaceFileMask, FormFieldValidator.WorkspaceFilePath
-
-
Field Summary
-
Fields inherited from class hudson.util.FormFieldValidator
CHECK, permission, request, response, subject
-
-
Constructor Summary
Constructors Constructor Description Executable(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
check()
Deprecated.protected void
checkExecutable(File exe)
Deprecated.Provides an opportunity for derived classes to do additional checks on the executable.-
Methods inherited from class hudson.util.FormFieldValidator
error, error, errorWithMarkup, getFileParameter, ok, ok, ok, okWithMarkup, process, respond, warning, warning, warningWithMarkup
-
-
-
-
Method Detail
-
check
protected void check() throws IOException, javax.servlet.ServletException
Deprecated.- Specified by:
check
in classFormFieldValidator
- Throws:
IOException
javax.servlet.ServletException
-
checkExecutable
protected void checkExecutable(File exe) throws IOException, javax.servlet.ServletException
Deprecated.Provides an opportunity for derived classes to do additional checks on the executable.- Throws:
IOException
javax.servlet.ServletException
-
-