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.void
handle
(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, implementsPublicException
and contains a message from theDictionary
to be displayed to the user.FormTooOldException
- if the submitted form is too old. This exception, by default, implementsPublicException
and contains a message from theDictionary
to be displayed to the user.
-