- java.lang.Object
-
- jakarta.mvc.form.FormMethodOverwriter
-
public final class FormMethodOverwriter extends java.lang.ObjectForm method overwriter is used to overwrite a HTML form's HTTP method to be able to use other verbs such as
PATCHorDELETE.- Since:
- 2.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormMethodOverwriter.OptionsOptions for propertyFORM_METHOD_OVERWRITE.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_HIDDEN_FIELD_NAMEThe default name of the hidden form field used to overwrite the HTTP method.static java.lang.StringFORM_METHOD_OVERWRITEProperty that can be used to enable the Form method overwrite mechanism for an application.static java.lang.StringHIDDEN_FIELD_NAMEProperty that can be used to configure the name of the hidden form input to get the targeted HTTP method.
-
Constructor Summary
Constructors Constructor Description FormMethodOverwriter()
-
-
-
Field Detail
-
FORM_METHOD_OVERWRITE
public static final java.lang.String FORM_METHOD_OVERWRITE
Property that can be used to enable the Form method overwrite mechanism for an application. Values of this property must be of typeFormMethodOverwriter.Options.- See Also:
- Constant Field Values
-
HIDDEN_FIELD_NAME
public static final java.lang.String HIDDEN_FIELD_NAME
Property that can be used to configure the name of the hidden form input to get the targeted HTTP method.- See Also:
- Constant Field Values
-
DEFAULT_HIDDEN_FIELD_NAME
public static final java.lang.String DEFAULT_HIDDEN_FIELD_NAME
The default name of the hidden form field used to overwrite the HTTP method.- See Also:
- Constant Field Values
-
-