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.WorkspaceFilePathCHECK, 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, warningWithMarkuppublic URLCheck(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
protected BufferedReader open(URL url) throws IOException
IOExceptionprotected boolean findText(BufferedReader in, String literal) throws IOException
IOExceptionprotected 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.IOExceptionjavax.servlet.ServletExceptionCopyright © 2019. All rights reserved.