Package com.adobe.acs.commons.forms
Interface FormsRouter
-
@ProviderType public interface FormsRouterInternal routing used for internal routing of POST form submissions in the Filters.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFORM_NAME_INPUTstatic StringFORM_RESOURCE_INPUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFormSelector(org.apache.sling.api.SlingHttpServletRequest slingRequest)Gets the Form Selector for the form POST request.StringgetSuffix()Gets the suffix to look for to identify ACS AEM Commons form submissions.booleanhasValidSuffix(org.apache.sling.api.SlingHttpServletRequest slingRequest)Checks if the Request has a suffix that matches the suffix registered to identify ACS AEM Commons form submissions (and returned by .getSuffix()).
-
-
-
Field Detail
-
FORM_RESOURCE_INPUT
static final String FORM_RESOURCE_INPUT
- See Also:
- Constant Field Values
-
FORM_NAME_INPUT
static final String FORM_NAME_INPUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFormSelector
String getFormSelector(org.apache.sling.api.SlingHttpServletRequest slingRequest)
Gets the Form Selector for the form POST request.- Parameters:
slingRequest- the SlingRequest obj- Returns:
- returns the selector as a String
-
getSuffix
String getSuffix()
Gets the suffix to look for to identify ACS AEM Commons form submissions.- Returns:
- returns the Suffix
-
hasValidSuffix
boolean hasValidSuffix(org.apache.sling.api.SlingHttpServletRequest slingRequest)
Checks if the Request has a suffix that matches the suffix registered to identify ACS AEM Commons form submissions (and returned by .getSuffix()).- Parameters:
slingRequest- the SlingRequest obj- Returns:
- true if the Request's suffix matches the suffix registered to identify ACS AEM Commons form submissions
-
-