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.
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
  • Constructor Details

    • Executable

      public Executable(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
      Deprecated.
  • Method Details

    • check

      protected void check() throws IOException, javax.servlet.ServletException
      Deprecated.
      Specified by:
      check in class FormFieldValidator
      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