public static class ValidationOptions.ValidationOptionsBuilder extends Object
Constructor and Description |
---|
ValidationOptionsBuilder() |
Modifier and Type | Method and Description |
---|---|
ValidationOptions |
build()
This will build the
ValidationOptions object using the options provided in the setters. |
ValidationOptions.ValidationOptionsBuilder |
setCaptchaData(String captchaData)
Sets the captcha data to validate the captcha.
|
ValidationOptions.ValidationOptionsBuilder |
setContextPath(String contextPath)
Sets the context path of the application
|
ValidationOptions.ValidationOptionsBuilder |
setData(String data)
Sets the submitted data of the adaptive form.
|
ValidationOptions.ValidationOptionsBuilder |
setFormContainerResource(org.apache.sling.api.resource.Resource formContainerResource)
Sets the adaptive form container resource against which server side validation is to be performed
|
ValidationOptions.ValidationOptionsBuilder |
setLocale(String locale)
Sets the locale to be used during validation of data on server side
|
ValidationOptions.ValidationOptionsBuilder |
setServerUrl(String serverUrl)
Sets the server name to be used for conversion of relative to absolute URL
|
public ValidationOptions.ValidationOptionsBuilder setFormContainerResource(org.apache.sling.api.resource.Resource formContainerResource)
formContainerResource
- adaptive form container resource against which validation would be performed.ValidationOptions.ValidationOptionsBuilder
validation options builderpublic ValidationOptions.ValidationOptionsBuilder setData(String data)
data
- String representing data of Adaptive form.ValidationOptions.ValidationOptionsBuilder
validation options builderpublic ValidationOptions.ValidationOptionsBuilder setCaptchaData(String captchaData)
captchaData
- Captcha data coming from request to validate captcha, which resides in the form.ValidationOptions.ValidationOptionsBuilder
validation options builderpublic ValidationOptions.ValidationOptionsBuilder setServerUrl(String serverUrl)
serverUrl
- host name/ip to be used for conversion of relative URL to absolute URL during server side validation.ValidationOptions.ValidationOptionsBuilder
validation options builderpublic ValidationOptions.ValidationOptionsBuilder setContextPath(String contextPath)
contextPath
- Context path for the application.ValidationOptions.ValidationOptionsBuilder
validation options builderpublic ValidationOptions.ValidationOptionsBuilder setLocale(String locale)
locale
- localeValidationOptions.ValidationOptionsBuilder
validation options builderpublic ValidationOptions build()
ValidationOptions
object using the options provided in the setters.ValidationOptions
validation optionsCopyright © 1982–2022 Adobe Systems Inc.. All rights reserved.