Implementations may use this contract for example as part of a solution to provide data integrity, confidentiality, protection against cross-site request forgery (CSRF), and others or for other tasks such as automatically adding a hidden field to all forms and URLs.
View technologies that support this contract can obtain an instance to
delegate to via RequestContext#getRequestDataValueProcessor().
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: additional hidden form fields to be added, ornullthe current exchange exchange)Invoked after all form fields have been rendered. |
| public String | Returns: the action to use, possibly modifiedthe current exchange exchange, String the form action action, String the form HTTP method httpMethod)Invoked when a new form action is rendered. |
| public String | Returns: the form field value to use, possibly modifiedthe current exchange exchange, String the form field name name, String the form field value value, String the form field type ("text", "hidden", etc.) type)Invoked when a form field value is rendered. |
| public String | Returns: the URL to use, possibly modifiedthe current exchange exchange, String the URL value url)Invoked when a URL is about to be rendered or redirected to. |
| getExtraHiddenFields | back to summary |
|---|---|
| public Map Invoked after all form fields have been rendered.
| |
| processAction | back to summary |
|---|---|
| public String processAction(ServerWebExchange exchange, String action, String httpMethod) Invoked when a new form action is rendered.
| |
| processFormFieldValue | back to summary |
|---|---|
| public String processFormFieldValue(ServerWebExchange exchange, String name, String value, String type) Invoked when a form field value is rendered.
| |
| processUrl | back to summary |
|---|---|
| public String processUrl(ServerWebExchange exchange, String url) Invoked when a URL is about to be rendered or redirected to.
| |