hudson.util
Class FormFieldValidator.WorkspaceFilePath

java.lang.Object
  extended by hudson.util.FormFieldValidator
      extended by hudson.util.FormFieldValidator.WorkspaceFilePath
Direct Known Subclasses:
FormFieldValidator.WorkspaceDirectory
Enclosing class:
FormFieldValidator

Deprecated. as of 1.294. Use FilePath.validateRelativePath(String, boolean, boolean)

public static class FormFieldValidator.WorkspaceFilePath
extends FormFieldValidator

Checks a valid file name or directory (specified in the 'value' query parameter) against the current workspace.

Since:
1.160

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
FormFieldValidator.WorkspaceFilePath(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, boolean errorIfNotExist, boolean expectingFile)
          Deprecated.  
 
Method Summary
protected  void check()
          Deprecated.  
protected  FilePath getBaseDirectory(AbstractProject<?,?> p)
          Deprecated. The base directory from which the path name is resolved.
 
Methods inherited from class hudson.util.FormFieldValidator
error, error, errorWithMarkup, getFileParameter, ok, ok, ok, okWithMarkup, process, respond, warning, warning, warningWithMarkup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormFieldValidator.WorkspaceFilePath

public FormFieldValidator.WorkspaceFilePath(org.kohsuke.stapler.StaplerRequest request,
                                            org.kohsuke.stapler.StaplerResponse response,
                                            boolean errorIfNotExist,
                                            boolean expectingFile)
Deprecated. 
Method Detail

check

protected void check()
              throws IOException,
                     javax.servlet.ServletException
Deprecated. 
Specified by:
check in class FormFieldValidator
Throws:
IOException
javax.servlet.ServletException

getBaseDirectory

protected FilePath getBaseDirectory(AbstractProject<?,?> p)
Deprecated. 
The base directory from which the path name is resolved.



Copyright © 2004-2013. All Rights Reserved.