Interface PostRedirectGetFormHelper
-
- All Superinterfaces:
FormHelper
- All Known Subinterfaces:
PostRedirectGetWithCookiesFormHelper
@ProviderType public interface PostRedirectGetFormHelper extends FormHelper
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_ERRORSstatic StringKEY_FORMstatic StringKEY_FORM_NAMEstatic StringKEY_PREFIX_FORM_NAMEstatic StringQUERY_PARAM_FORM_SELECTOR-
Fields inherited from interface com.adobe.acs.commons.forms.helpers.FormHelper
DEFAULT_FORM_SELECTOR, EXTENSION, FORM_NAME_INPUT, FORM_RESOURCE_INPUT, SERVICE_RANKING_BASE, SERVICE_RANKING_FORWARD_AS_GET, SERVICE_RANKING_POST_REDIRECT_GET, SERVICE_RANKING_POST_REDIRECT_WITH_COOKIES_GET
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendRedirect(Form form, com.day.cq.wcm.api.Page page, String formSelector, org.apache.sling.api.SlingHttpServletResponse response)Same as: sendRedirect(Form form, Page page, SlingHttpServletResponse response) but adds the Form selector query parameter to redirect request.voidsendRedirect(Form form, com.day.cq.wcm.api.Page page, org.apache.sling.api.SlingHttpServletResponse response)Issues a 302 redirect with the form serialized into a JSON object that can be read out by the PostRedirectGetFormHelper on the "other side".voidsendRedirect(Form form, String path, String formSelector, org.apache.sling.api.SlingHttpServletResponse response)Same as: sendRedirect(Form form, String path, SlingHttpServletResponse response) but adds the Form selector query parameter to redirect request.voidsendRedirect(Form form, String path, org.apache.sling.api.SlingHttpServletResponse response)Issues a 302 redirect with the form serialized into a JSON object that can be read out by the PostRedirectGetFormHelper on the "other side".voidsendRedirect(Form form, org.apache.sling.api.resource.Resource resource, String formSelector, org.apache.sling.api.SlingHttpServletResponse response)Same as: sendRedirect(Form form, Resource resource, SlingHttpServletResponse response) but adds the Form selector query parameter to redirect request.voidsendRedirect(Form form, org.apache.sling.api.resource.Resource resource, org.apache.sling.api.SlingHttpServletResponse response)/** Issues a 302 redirect with the form serialized into a JSON object that can be read out by the PostRedirectGetFormHelper on the "other side".-
Methods inherited from interface com.adobe.acs.commons.forms.helpers.FormHelper
getAction, getAction, getAction, getAction, getAction, getAction, getForm, getForm, getFormInputsHTML, getFormSelector, renderForm, renderForm, renderForm, renderOtherForm, renderOtherForm, renderOtherForm
-
-
-
-
Field Detail
-
KEY_FORM_NAME
static final String KEY_FORM_NAME
- See Also:
- Constant Field Values
-
KEY_FORM
static final String KEY_FORM
- See Also:
- Constant Field Values
-
KEY_ERRORS
static final String KEY_ERRORS
- See Also:
- Constant Field Values
-
KEY_PREFIX_FORM_NAME
static final String KEY_PREFIX_FORM_NAME
- See Also:
- Constant Field Values
-
QUERY_PARAM_FORM_SELECTOR
static final String QUERY_PARAM_FORM_SELECTOR
- See Also:
- Constant Field Values
-
-
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
-
-