Interface SpincastFormsDoubleSubmitProtectionFilter
- All Known Implementing Classes:
SpincastFormsDoubleSubmitProtectionFilterDefault
public interface SpincastFormsDoubleSubmitProtectionFilter
The Forms Double Submit Protection Filter.
You should add this filter with the "skipResourcesRequests()" options so it is ignored except for main routes.
-
Method Summary
Modifier and TypeMethodDescriptionCreates an id to use in a form that needs to be protected.voidhandle(RequestContext<?> context) Filter's handle main method.
-
Method Details
-
createNewFormDoubleSubmitProtectionId
String createNewFormDoubleSubmitProtectionId()Creates an id to use in a form that needs to be protected. -
handle
Filter's handle main method.- Throws:
FormAlreadySubmittedException- if the form was already submitted. This exception, by default, implementsPublicExceptionand contains a message from theDictionaryto be displayed to the user.FormTooOldException- if the submitted form is too old. This exception, by default, implementsPublicExceptionand contains a message from theDictionaryto be displayed to the user.
-