Uses of Class
hudson.util.FormValidation
-
Packages that use FormValidation Package Description hudson hudson.logging hudson.model Core object model that are bound to URLs via stapler, rooted atJenkins
.hudson.model.labels Boolean expression over labels.hudson.security Security-related code.hudson.slaves Code related to agents.hudson.tasks hudson.tools hudson.triggers Built-inTrigger
s that run periodically to kick a new build.hudson.util Other miscellaneous utility codejenkins.diagnostics jenkins.model jenkins.model.labels jenkins.security jenkins.tasks.filters.impl jenkins.triggers jenkins.util -
-
Uses of FormValidation in hudson
Methods in hudson that return FormValidation Modifier and Type Method Description FormValidation
PluginManager. doCheckPluginUrl(org.kohsuke.stapler.StaplerRequest request, String value)
FormValidation
ProxyConfiguration.DescriptorImpl. doCheckPort(String value)
FormValidation
PluginManager. doCheckUpdateSiteUrl(org.kohsuke.stapler.StaplerRequest request, String value)
FormValidation
ProxyConfiguration.DescriptorImpl. doValidateProxy(String testUrl, String name, int port, String userName, Secret password, String noProxyHost)
static FormValidation
FilePath. validateFileMask(FilePath path, String value)
Short forvalidateFileMask(path, value, true)
static FormValidation
FilePath. validateFileMask(FilePath path, String value, boolean caseSensitive)
Shortcut forFilePath.validateFileMask(String,boolean,boolean)
witherrorIfNotExist
true, as the left-hand side can be null.FormValidation
FilePath. validateFileMask(String value)
Short forvalidateFileMask(value, true, true)
FormValidation
FilePath. validateFileMask(String value, boolean errorIfNotExist)
Short forvalidateFileMask(value, errorIfNotExist, true)
FormValidation
FilePath. validateFileMask(String value, boolean errorIfNotExist, boolean caseSensitive)
Checks the GLOB-style file mask.FormValidation
FilePath. validateRelativeDirectory(String value)
FormValidation
FilePath. validateRelativeDirectory(String value, boolean errorIfNotExist)
A convenience method overFilePath.validateRelativePath(String, boolean, boolean)
.FormValidation
FilePath. validateRelativePath(String value, boolean errorIfNotExist, boolean expectingFile)
Validates a relative file path from thisFilePath
. -
Uses of FormValidation in hudson.logging
Methods in hudson.logging that return FormValidation Modifier and Type Method Description FormValidation
LogRecorder. doCheckName(String value, String level)
Validate the name.FormValidation
LogRecorderManager. doCheckNewName(String name)
-
Uses of FormValidation in hudson.model
Methods in hudson.model that return FormValidation Modifier and Type Method Description abstract FormValidation
AbstractProject.LabelValidator. check(AbstractProject<?,?> project, Label label)
Deprecated.Check the use of the label within the specified context.protected FormValidation
ViewDescriptor. checkDisplayName(View view, String value)
Validation of the display name field.protected FormValidation
JDK.DescriptorImpl. checkHomeDirectory(File value)
Checks if the JAVA_HOME is a valid JAVA_HOME path.FormValidation
AbstractProject.LabelValidator. checkItem(Item item, Label label)
Deprecated.Validates the use of a label within a particular context.FormValidation
AbstractProject.AbstractProjectDescriptor. doCheckAssignedLabelString(AbstractProject<?,?> project, String value)
FormValidation
ChoiceParameterDefinition.DescriptorImpl. doCheckChoices(String value)
Checks if parameterized build choices are valid.FormValidation
AbstractProject.AbstractProjectDescriptor. doCheckCustomWorkspace(String customWorkspace)
FormValidation
ListView.DescriptorImpl. doCheckIncludeRegex(String value)
Checks if the include regular expression is valid.FormValidation
View. doCheckJobName(String value)
Makes sure that the given name is good as a job name.FormValidation
AbstractProject.AbstractProjectDescriptor. doCheckLabel(AbstractProject<?,?> project, String value)
FormValidation
ComputerSet. doCheckName(String value)
Makes sure that the given name is good as an agent name.FormValidation
AbstractItem. doCheckNewName(String newName)
Called byAbstractItem.doConfirmRename(java.lang.String)
andrename.jelly
to validate renames.FormValidation
Slave.SlaveDescriptor. doCheckNumExecutors(String value)
FormValidation
Slave.SlaveDescriptor. doCheckRemoteFS(String value)
Performs syntactical check on the remote FS for agents.FormValidation
AbstractProject. doCheckRetryCount(String value)
Validates the retry count RegexFormValidation
TimeZoneProperty.DescriptorImpl. doCheckTimeZoneName(String timeZoneName)
FormValidation
Hudson. doFieldCheck(String value, String type, String errorText, String warningText)
Deprecated.as of 1.324 Either use client-side validation (e.g.FormValidation
UpdateSite. doVerifySignature()
FormValidation
MyViewsProperty. doViewExistsCheck(String value, boolean exists)
Checks if a private view with the given name exists.FormValidation
ProxyView. doViewExistsCheck(String value)
Fails if a global view with the given name does not exist.FormValidation
UpdateSite. updateDirectlyNow()
Forces an update of the data file from the configured URL, irrespective of the last time the data was retrieved.FormValidation
UpdateSite. updateDirectlyNow(boolean signatureCheck)
FormValidation
DownloadService.Downloadable. updateNow()
static FormValidation
AbstractProject.AbstractProjectDescriptor. validateLabelExpression(String value, AbstractProject<?,?> project)
Deprecated.UseLabelExpression.validate(String, Item)
instead.FormValidation
UpdateSite. verifySignatureInternal(net.sf.json.JSONObject o)
Verifies the signature in the update center data file.Methods in hudson.model that return types with arguments of type FormValidation Modifier and Type Method Description List<FormValidation>
UpdateCenter. updateAllSites()
Ensure that all UpdateSites are up to date, without requiring a user to browse to the instance.Future<FormValidation>
UpdateSite. updateDirectly()
Update the data file from the given URL if the file does not exist, or is otherwise due for update.Future<FormValidation>
UpdateSite. updateDirectly(boolean signatureCheck)
Deprecated. -
Uses of FormValidation in hudson.model.labels
Methods in hudson.model.labels that return FormValidation Modifier and Type Method Description static FormValidation
LabelExpression. validate(String expression)
Validates a label expression.static FormValidation
LabelExpression. validate(String expression, Item item)
Validates a label expression. -
Uses of FormValidation in hudson.security
Methods in hudson.security that return FormValidation Modifier and Type Method Description FormValidation
HudsonPrivateSecurityRealm.DescriptorImpl. doCheckAllowsSignup(boolean value)
-
Uses of FormValidation in hudson.slaves
Methods in hudson.slaves that return FormValidation Modifier and Type Method Description FormValidation
SimpleScheduledRetentionStrategy.DescriptorImpl. doCheck(String value)
Performs syntax check.FormValidation
NodeDescriptor. doCheckName(String value)
FormValidation
JNLPLauncher.DescriptorImpl. doCheckWebSocket(boolean webSocket, String tunnel)
-
Uses of FormValidation in hudson.tasks
Methods in hudson.tasks that return FormValidation Modifier and Type Method Description protected FormValidation
Maven.MavenInstallation.DescriptorImpl. checkHomeDirectory(File value)
Checks if the MAVEN_HOME is valid.FormValidation
BuildTrigger.DescriptorImpl. doCheck(AbstractProject project, String value)
Form validation method.FormValidation
Fingerprinter.DescriptorImpl. doCheck(AbstractProject project, String value)
Deprecated.FormValidation
ArtifactArchiver.DescriptorImpl. doCheckArtifacts(AbstractProject project, String value, String caseSensitive)
Performs on-the-fly validation of the file mask wildcard, when the artifacts textbox or the caseSensitive checkbox are modifiedFormValidation
Shell.DescriptorImpl. doCheckShell(String value)
Check the existence of sh in the given location.FormValidation
Fingerprinter.DescriptorImpl. doCheckTargets(AbstractProject<?,?> project, String value)
FormValidation
BatchFile.DescriptorImpl. doCheckUnstableReturn(String value)
Performs on-the-fly validation of the errorlevel.FormValidation
Shell.DescriptorImpl. doCheckUnstableReturn(String value)
Performs on-the-fly validation of the exit code. -
Uses of FormValidation in hudson.tools
Methods in hudson.tools that return FormValidation Modifier and Type Method Description protected FormValidation
ToolDescriptor. checkHomeDirectory(File home)
May be overridden to provide tool-specific validation of a tool home directory.FormValidation
AbstractCommandInstaller.Descriptor. doCheckCommand(String value)
FormValidation
ToolDescriptor. doCheckHome(File value)
Checks if the home directory is valid.FormValidation
ToolInstallerDescriptor. doCheckLabel(String value)
FormValidation
ToolDescriptor. doCheckName(String value)
Checks if the tool name is valid.FormValidation
AbstractCommandInstaller.Descriptor. doCheckToolHome(String value)
FormValidation
ZipExtractionInstaller.DescriptorImpl. doCheckUrl(String value)
-
Uses of FormValidation in hudson.triggers
Methods in hudson.triggers that return FormValidation Modifier and Type Method Description FormValidation
TimerTrigger.DescriptorImpl. doCheck(String value, Item item)
FormValidation
SCMTrigger.DescriptorImpl. doCheckPollingThreadCount(String value)
FormValidation
SCMTrigger.DescriptorImpl. doCheckScmpoll_spec(String value, boolean ignorePostCommitHooks, Item item)
Performs syntax check.FormValidation
TimerTrigger.DescriptorImpl. doCheckSpec(String value, Item item)
Performs syntax check. -
Uses of FormValidation in hudson.util
Methods in hudson.util that return FormValidation Modifier and Type Method Description static FormValidation
FormValidation. aggregate(Collection<FormValidation> validations)
Aggregate multiple validations into one.protected abstract FormValidation
FormValidation.URLCheck. check()
Implement the actual form validation logic, by using other convenience methods defined in this class.static FormValidation
FormValidation. error(String message)
Sends out a string error message that indicates an error.static FormValidation
FormValidation. error(String format, Object... args)
Sends out a string error message that indicates an error, by formatting it withString.format(String, Object[])
static FormValidation
FormValidation. error(Throwable e, String message)
Sends out a string error message, with optional "show details" link that expands to the full stack trace.static FormValidation
FormValidation. error(Throwable e, String format, Object... args)
static FormValidation
FormValidation. errorWithMarkup(String message)
Sends out an HTML fragment that indicates an error.protected FormValidation
FormValidation.URLCheck. handleIOException(String url, IOException e)
Calls theerror(String)
method with a reasonable error message.static FormValidation
FormValidation. ok()
static FormValidation
FormValidation. ok(String message)
static FormValidation
FormValidation. ok(String format, Object... args)
static FormValidation
FormValidation. okWithMarkup(String message)
static FormValidation
FormValidation. respond(FormValidation.Kind kind, String html)
Sends out an arbitrary HTML fragment as the output.abstract FormValidation
FormValidation.FileValidator. validate(File f)
static FormValidation
FormValidation. validateBase64(String value, boolean allowWhitespace, boolean allowEmpty, String errorMessage)
Makes sure that the given string is a base64 encoded text.static FormValidation
FormValidation. validateExecutable(String exe)
Makes sure that the given string points to an executable file.static FormValidation
FormValidation. validateExecutable(String exe, FormValidation.FileValidator exeValidator)
Makes sure that the given string points to an executable file.static FormValidation
FormValidation. validateIntegerInRange(String value, int lower, int upper)
Make sure that the given string is an integer in the range specified by the lower and upper bounds (both inclusive)static FormValidation
FormValidation. validateNonNegativeInteger(String value)
Makes sure that the given string is a non-negative integer.static FormValidation
FormValidation. validatePositiveInteger(String value)
Makes sure that the given string is a positive integer.static FormValidation
FormValidation. validateRequired(String value)
Makes sure that the given string is not null or empty.static FormValidation
FormValidation. warning(String message)
static FormValidation
FormValidation. warning(String format, Object... args)
static FormValidation
FormValidation. warning(Throwable e, String message)
static FormValidation
FormValidation. warning(Throwable e, String format, Object... args)
static FormValidation
FormValidation. warningWithMarkup(String message)
Method parameters in hudson.util with type arguments of type FormValidation Modifier and Type Method Description static FormValidation
FormValidation. aggregate(Collection<FormValidation> validations)
Aggregate multiple validations into one. -
Uses of FormValidation in jenkins.diagnostics
Methods in jenkins.diagnostics that return FormValidation Modifier and Type Method Description FormValidation
URICheckEncodingMonitor. doCheckURIEncoding(org.kohsuke.stapler.StaplerRequest request)
-
Uses of FormValidation in jenkins.model
Methods in jenkins.model that return FormValidation Modifier and Type Method Description FormValidation
JenkinsLocationConfiguration. doCheckAdminAddress(String value)
FormValidation
Jenkins. doCheckDisplayName(String displayName, String jobName)
Checks to see if the candidate displayName collides with any existing display names or project namesFormValidation
ProjectNamingStrategy.PatternProjectNamingStrategy.DescriptorImpl. doCheckNamePattern(String value)
FormValidation
Jenkins.DescriptorImpl. doCheckNumExecutors(String value)
FormValidation
Jenkins. doCheckURIEncoding(org.kohsuke.stapler.StaplerRequest request)
Deprecated.FormValidation
JenkinsLocationConfiguration. doCheckUrl(String value)
Checks the URL inglobal.jelly
FormValidation
Jenkins. doCheckViewName(String value)
Checks if a top-level view with the given name exists and make sure that the name is good as a view name.FormValidation
Jenkins. doDefaultJDKCheck(org.kohsuke.stapler.StaplerRequest request, String value)
If the user chose the default JDK, make sure we got 'java' in PATH.FormValidation
Jenkins. doViewExistsCheck(String value)
Deprecated.1.512 -
Uses of FormValidation in jenkins.model.labels
Methods in jenkins.model.labels that return FormValidation Modifier and Type Method Description FormValidation
LabelValidator. check(Item item, Label label)
Validates the use of a label within a particular context. -
Uses of FormValidation in jenkins.security
Methods in jenkins.security that return FormValidation Modifier and Type Method Description FormValidation
ResourceDomainConfiguration. doCheckUrl(String resourceRootUrlString)
-
Uses of FormValidation in jenkins.tasks.filters.impl
Methods in jenkins.tasks.filters.impl that return FormValidation Modifier and Type Method Description FormValidation
RetainVariablesLocalRule.DescriptorImpl. doCheckRetainCharacteristicEnvVars(boolean value)
-
Uses of FormValidation in jenkins.triggers
Methods in jenkins.triggers that return FormValidation Modifier and Type Method Description FormValidation
ReverseBuildTrigger.DescriptorImpl. doCheckUpstreamProjects(Job project, String value)
-
Uses of FormValidation in jenkins.util
Methods in jenkins.util that return FormValidation Modifier and Type Method Description FormValidation
JSONSignatureValidator. verifySignature(net.sf.json.JSONObject o)
Verifies the signature in the update center data file.
-