@Deprecated
public class ValidationHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
checkConstraint(SlingHttpServletRequest request,
SlingHttpServletResponse response,
Resource resource)
|
static boolean |
checkRequired(SlingHttpServletRequest request,
Resource resource)
|
static java.lang.String |
getConstraintMessage(Resource resource)
|
static java.lang.String |
getFormElementQualifier(SlingHttpServletRequest request,
Resource resource)
|
static java.lang.String |
getRequiredMessage(Resource resource)
Deprecated.
Use a
FieldDescription instead. |
static ValidationInfo |
getValidationInfo(SlingHttpServletRequest request)
Deprecated.
|
static boolean |
hasValidationInfo(HttpServletRequest request)
Deprecated.
|
static void |
writeConstraintCheck(SlingHttpServletRequest request,
SlingHttpServletResponse response,
Resource resource,
JspWriter out)
|
static void |
writeRegexpText(SlingHttpServletRequest request,
Resource resource,
java.lang.String regexp,
JspWriter out)
|
static void |
writeRequiredCheck(SlingHttpServletRequest request,
Resource resource,
JspWriter out)
|
@Deprecated public static ValidationInfo getValidationInfo(SlingHttpServletRequest request)
ValidationInfo.createValidationInfo(SlingHttpServletRequest)
request
- The current request@Deprecated public static boolean hasValidationInfo(HttpServletRequest request)
ValidationInfo.getValidationInfo(HttpServletRequest)
request
- The curren t request.true
if there are validation errors.@Deprecated public static java.lang.String getRequiredMessage(Resource resource)
FieldDescription
instead.resource
- The form element resource.@Deprecated public static java.lang.String getConstraintMessage(Resource resource)
resource
- The form element resource.@Deprecated public static boolean checkRequired(SlingHttpServletRequest request, Resource resource)
request
- requestresource
- The form element resource.@Deprecated public static void checkConstraint(SlingHttpServletRequest request, SlingHttpServletResponse response, Resource resource) throws java.io.IOException, ServletException
FieldHelper.checkConstraint(SlingHttpServletRequest, SlingHttpServletResponse, FieldDescription)
request
- requestresponse
- responseresource
- The form element resource.java.io.IOException
- if check caused an error
$throws ServletException if check caused an errorServletException
@Deprecated public static void writeRequiredCheck(SlingHttpServletRequest request, Resource resource, JspWriter out) throws java.io.IOException
FieldHelper.writeClientRequiredCheck(SlingHttpServletRequest, SlingHttpServletResponse, FieldDescription)
request
- requestresource
- resourceout
- outjava.io.IOException
- if write caused an error@Deprecated public static java.lang.String getFormElementQualifier(SlingHttpServletRequest request, Resource resource)
request
- requestresource
- resource@Deprecated public static void writeConstraintCheck(SlingHttpServletRequest request, SlingHttpServletResponse response, Resource resource, JspWriter out) throws java.io.IOException, ServletException
FieldHelper.writeClientConstraintCheck(SlingHttpServletRequest, SlingHttpServletResponse, FieldDescription)
request
- requestresponse
- responseresource
- resourceout
- outjava.io.IOException
- if write caused an errorServletException
- if write caused an error@Deprecated public static void writeRegexpText(SlingHttpServletRequest request, Resource resource, java.lang.String regexp, JspWriter out) throws java.io.IOException
FieldHelper.writeClientRegexpText(SlingHttpServletRequest, SlingHttpServletResponse, FieldDescription, String)
request
- requestresource
- resourceregexp
- regexpout
- outjava.io.IOException
- if write caused an error"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"