public interface RequestDataValueProcessor
実装では、たとえば、データの整合性、機密性、クロスサイトリクエストフォージェリ(CSRF)などからの保護を提供するソリューションの一部として、またはすべてのフォームと URL に非表示フィールドを自動的に追加するなどの他のタスクのために、この契約を使用する場合があります。
この契約をサポートする View テクノロジは、RequestContext.getRequestDataValueProcessor()
を介してデリゲートするインスタンスを取得できます。
修飾子と型 | メソッドと説明 |
---|---|
MapSE<StringSE, StringSE> | getExtraHiddenFields(HttpServletRequestEE request) すべてのフォームフィールドがレンダリングされた後に呼び出されます。 |
StringSE | processAction(HttpServletRequestEE request, StringSE action, StringSE httpMethod) 新しいフォームアクションがレンダリングされるときに呼び出されます。 |
StringSE | processFormFieldValue(HttpServletRequestEE request, StringSE name, StringSE value, StringSE type) フォームフィールドの値がレンダリングされるときに呼び出されます。 |
StringSE | processUrl(HttpServletRequestEE request, StringSE url) URL がレンダリングまたはリダイレクトされようとしているときに呼び出されます。 |
StringSE processAction(HttpServletRequestEE request, StringSE action, StringSE httpMethod)
request
- 現在のリクエスト action
- フォームアクション httpMethod
- フォーム HTTP メソッド StringSE processFormFieldValue(HttpServletRequestEE request, @Nullable StringSE name, StringSE value, StringSE type)
request
- 現在のリクエスト name
- フォームフィールド名 (もしあれば)value
- フォームフィールド値 type
- フォームフィールド型 (「テキスト」、「非表示」など)@Nullable MapSE<StringSE,StringSE> getExtraHiddenFields(HttpServletRequestEE request)
request
- 現在のリクエスト null
StringSE processUrl(HttpServletRequestEE request, StringSE url)
request
- 現在のリクエスト url
- URL 値