Interface PostRedirectGetFormHelper

    • Method Detail

      • sendRedirect

        void sendRedirect​(Form form,
                          String path,
                          org.apache.sling.api.SlingHttpServletResponse response)
                   throws IOException
        Issues a 302 redirect with the form serialized into a JSON object that can be read out by the PostRedirectGetFormHelper on the "other side". Allows 302 redirect to target the specified path.
        Parameters:
        form -
        path -
        response -
        Throws:
        IOException
      • sendRedirect

        void sendRedirect​(Form form,
                          com.day.cq.wcm.api.Page page,
                          org.apache.sling.api.SlingHttpServletResponse response)
                   throws IOException
        Issues a 302 redirect with the form serialized into a JSON object that can be read out by the PostRedirectGetFormHelper on the "other side". Allows 302 redirect to target the specified CQ Page.
        Parameters:
        form -
        page -
        response -
        Throws:
        IOException
      • sendRedirect

        void sendRedirect​(Form form,
                          org.apache.sling.api.resource.Resource resource,
                          org.apache.sling.api.SlingHttpServletResponse response)
                   throws IOException
        /** Issues a 302 redirect with the form serialized into a JSON object that can be read out by the PostRedirectGetFormHelper on the "other side". Allows 302 redirect to target the specified resource with provided .html extension.
        Parameters:
        form -
        resource -
        response -
        Throws:
        IOException
      • sendRedirect

        void sendRedirect​(Form form,
                          String path,
                          String formSelector,
                          org.apache.sling.api.SlingHttpServletResponse response)
                   throws IOException
        Same as: sendRedirect(Form form, String path, SlingHttpServletResponse response) but adds the Form selector query parameter to redirect request.
        Parameters:
        form -
        path -
        formSelector -
        response -
        Throws:
        IOException
      • sendRedirect

        void sendRedirect​(Form form,
                          com.day.cq.wcm.api.Page page,
                          String formSelector,
                          org.apache.sling.api.SlingHttpServletResponse response)
                   throws IOException
        Same as: sendRedirect(Form form, Page page, SlingHttpServletResponse response) but adds the Form selector query parameter to redirect request.
        Parameters:
        form -
        page -
        formSelector -
        response -
        Throws:
        IOException
      • sendRedirect

        void sendRedirect​(Form form,
                          org.apache.sling.api.resource.Resource resource,
                          String formSelector,
                          org.apache.sling.api.SlingHttpServletResponse response)
                   throws IOException
        Same as: sendRedirect(Form form, Resource resource, SlingHttpServletResponse response) but adds the Form selector query parameter to redirect request.
        Parameters:
        form -
        resource -
        formSelector -
        response -
        Throws:
        IOException