public class TextfieldHandler extends Object implements FieldHandler
| Constructor and Description |
|---|
TextfieldHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleField(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.resource.Resource fieldResource,
Map<String,Object> formData)
Handle the field being submitted.
|
boolean |
handles(org.apache.sling.api.resource.Resource fieldResource)
Returns true if the FieldHandler should handle the field resource
|
protected void |
validateValue(org.apache.sling.api.resource.Resource fieldResource,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, isRequiredpublic boolean handles(org.apache.sling.api.resource.Resource fieldResource)
FieldHandlerhandles in interface FieldHandlerfieldResource - the field resource to handlepublic void handleField(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.resource.Resource fieldResource,
Map<String,Object> formData)
throws FormException
FieldHandlerhandleField in interface FieldHandlerrequest - the request for the form submissionfieldResource - the resource from which to get the field configurationformData - the Map to which to save the data for the fieldFormException - an exception occurs attempting to handle the field
including the field not being set or being invalidprotected void validateValue(org.apache.sling.api.resource.Resource fieldResource,
String value)
throws FormException
FormExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.