public.javadoc.org.spincast.plugins.formsprotection.doublesubmit.SpincastFormsDoubleSubmitProtectionFilter.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastFormsDoubleSubmitProtectionFilter (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.formsprotection.doublesubmit
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
All Methods Instance Methods Abstract Methods
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.
-
-
Method Detail
-
createNewFormDoubleSubmitProtectionId
String createNewFormDoubleSubmitProtectionId()
Creates an id to use in a form that needs to be
protected.
-
handle
void handle(RequestContext<?> context)
throws FormAlreadySubmittedException,
FormTooOldException
Filter's handle main method.
- Throws:
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 © 2019. All rights reserved.