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