FormValidation.URLCheck
@Deprecated public abstract static class FormFieldValidator.URLCheck extends FormFieldValidator
FormFieldValidator.Base64, FormFieldValidator.Executable, FormFieldValidator.HudsonURL, FormFieldValidator.NonNegativeInteger, FormFieldValidator.URLCheck, FormFieldValidator.WorkspaceDirectory, FormFieldValidator.WorkspaceFileMask, FormFieldValidator.WorkspaceFilePath
CHECK, permission, request, response, subject
Constructor and Description |
---|
URLCheck(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
findText(BufferedReader in,
String literal)
Deprecated.
Finds the string literal from the given reader.
|
protected void |
handleIOException(String url,
IOException e)
Deprecated.
Calls the
FormFieldValidator.error(String) method with a reasonable error message. |
protected BufferedReader |
open(URL url)
Deprecated.
Opens the given URL and reads text content from it.
|
check, error, error, errorWithMarkup, getFileParameter, ok, ok, ok, okWithMarkup, process, respond, warning, warning, warningWithMarkup
public URLCheck(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
protected BufferedReader open(URL url) throws IOException
IOException
protected boolean findText(BufferedReader in, String literal) throws IOException
IOException
protected void handleIOException(String url, IOException e) throws IOException, javax.servlet.ServletException
FormFieldValidator.error(String)
method with a reasonable error message.
Use this method when the open(URL)
or findText(BufferedReader, String)
fails.url
- Pass in the URL that was connected. Used for error diagnosis.IOException
javax.servlet.ServletException
Copyright © 2004–2021. All rights reserved.