|
spring-webmvc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RequestDataValueProcessor
A contract for inspecting and potentially modifying request data values such as URL query parameters or form field values before they are rendered by a view or before a redirect.
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().
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getExtraHiddenFields(javax.servlet.http.HttpServletRequest request)
Invoked after all form fields have been rendered. |
java.lang.String |
processAction(javax.servlet.http.HttpServletRequest request,
java.lang.String action)
Invoked when a new form action is rendered. |
java.lang.String |
processFormFieldValue(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
java.lang.String value,
java.lang.String type)
Invoked when a form field value is rendered. |
java.lang.String |
processUrl(javax.servlet.http.HttpServletRequest request,
java.lang.String url)
Invoked when a URL is about to be rendered or redirected to. |
| Method Detail |
|---|
java.lang.String processAction(javax.servlet.http.HttpServletRequest request,
java.lang.String action)
request - the current requestaction - the form action
java.lang.String processFormFieldValue(javax.servlet.http.HttpServletRequest request,
java.lang.String name,
java.lang.String value,
java.lang.String type)
request - the current requestname - the form field namevalue - the form field valuetype - the form field type ("text", "hidden", etc.)
java.util.Map<java.lang.String,java.lang.String> getExtraHiddenFields(javax.servlet.http.HttpServletRequest request)
request - the current request
null
java.lang.String processUrl(javax.servlet.http.HttpServletRequest request,
java.lang.String url)
request - the current requesturl - the URL value
|
spring-webmvc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||