Package hudson.util
Class FormFieldValidator.URLCheck
java.lang.Object
hudson.util.FormFieldValidator
hudson.util.FormFieldValidator.URLCheck
- Direct Known Subclasses:
- FormFieldValidator.HudsonURL
- Enclosing class:
- FormFieldValidator
Deprecated.
Convenient base class for checking the validity of URLs
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.util.FormFieldValidatorFormFieldValidator.Base64, FormFieldValidator.Executable, FormFieldValidator.HudsonURL, FormFieldValidator.URLCheck, FormFieldValidator.WorkspaceDirectory, FormFieldValidator.WorkspaceFileMask, FormFieldValidator.WorkspaceFilePath
- 
Field SummaryFields inherited from class hudson.util.FormFieldValidatorCHECK, permission, request, response, subject
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedURLCheck(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanfindText(BufferedReader in, String literal) Deprecated.Finds the string literal from the given reader.protected voidhandleIOException(String url, IOException e) Deprecated.Calls theFormFieldValidator.error(String)method with a reasonable error message.protected BufferedReaderDeprecated.Opens the given URL and reads text content from it.Methods inherited from class hudson.util.FormFieldValidatorcheck, error, error, errorWithMarkup, getFileParameter, ok, ok, ok, okWithMarkup, process, respond, warning, warning, warningWithMarkup
- 
Constructor Details- 
URLCheckprotected URLCheck(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Deprecated.
 
- 
- 
Method Details- 
openDeprecated.Opens the given URL and reads text content from it. This method honors Content-type header.- Throws:
- IOException
 
- 
findTextDeprecated.Finds the string literal from the given reader.- Returns:
- true if found, false otherwise.
- Throws:
- IOException
 
- 
handleIOExceptionprotected void handleIOException(String url, IOException e) throws IOException, javax.servlet.ServletException Deprecated.Calls theFormFieldValidator.error(String)method with a reasonable error message. Use this method when theopen(URL)orfindText(BufferedReader, String)fails.- Parameters:
- url- Pass in the URL that was connected. Used for error diagnosis.
- Throws:
- IOException
- javax.servlet.ServletException
 
 
- 
FormValidation.URLCheck