-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathProblemHandlingWebflux.java
39 lines (37 loc) · 1.62 KB
/
ProblemHandlingWebflux.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.ksoot.problem.spring.advice.webflux;
import com.ksoot.problem.spring.advice.AdviceTrait;
import com.ksoot.problem.spring.advice.application.ApplicationAdviceTraits;
import com.ksoot.problem.spring.advice.general.GeneralAdviceTraits;
import com.ksoot.problem.spring.advice.http.HttpAdviceTraits;
import com.ksoot.problem.spring.advice.io.IOAdviceTraits;
import com.ksoot.problem.spring.advice.network.NetworkAdviceTraits;
import com.ksoot.problem.spring.advice.routing.RoutingAdviceTraits;
import com.ksoot.problem.spring.advice.validation.ValidationAdviceTraits;
import org.springframework.web.server.ServerWebExchange;
/**
* {@link ProblemHandlingWebflux} is a composite {@link AdviceTrait} that combines all built-in
* advice traits into a single interface that makes it easier to use:
*
* <pre><code>
* {@literal @}ControllerAdvice
* public class ExceptionHandling implements ProblemHandlingWebflux
* </code></pre>
*
* <strong>Note:</strong> Future versions of this class will be extended with additional traits.
*
* @see GeneralAdviceTraits
* @see HttpAdviceTraits
* @see IOAdviceTraits
* @see NetworkAdviceTraits
* @see RoutingAdviceTraits
* @see ValidationAdviceTraits
* @see ApplicationAdviceTraits
*/
public interface ProblemHandlingWebflux<R>
extends GeneralAdviceTraits<ServerWebExchange, R>,
HttpAdviceTraits<ServerWebExchange, R>,
IOAdviceTraits<ServerWebExchange, R>,
// NetworkAdviceTraits<ServerWebExchange, R>,
ValidationAdviceTraits<ServerWebExchange, R>,
WebExchangeBindAdviceTrait<ServerWebExchange, R>,
ApplicationAdviceTraits<ServerWebExchange, R> {}