public interface SpincastFormsDoubleSubmitProtectionFilter
You should add this filter with the "skipResourcesRequests()" options so it is ignored except for main routes.
| Modifier and Type | Method and Description |
|---|---|
String |
createNewFormDoubleSubmitProtectionId()
Creates an id to use in a form that needs to be
protected.
|
void |
handle(RequestContext<?> context)
Filter's handle main method.
|
String createNewFormDoubleSubmitProtectionId()
void handle(RequestContext<?> context) throws FormAlreadySubmittedException, FormTooOldException
FormAlreadySubmittedException - if the form was already submitted. This
exception, by default, implements PublicException and contains a
message from the Dictionary to be displayed to the user.FormTooOldException - if the submitted form is too old. This
exception, by default, implements PublicException and contains a
message from the Dictionary to be displayed to the user.Copyright © 2018. All rights reserved.