Interface FormsRouter


  • @ProviderType
    public interface FormsRouter
    Internal routing used for internal routing of POST form submissions in the Filters.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getFormSelector​(org.apache.sling.api.SlingHttpServletRequest slingRequest)
      Gets the Form Selector for the form POST request.
      String getSuffix()
      Gets the suffix to look for to identify ACS AEM Commons form submissions.
      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()).
    • 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