Class PostProcessorsRegistry
- java.lang.Object
-
- com.tietoevry.quarkus.resteasy.problem.postprocessing.PostProcessorsRegistry
-
public final class PostProcessorsRegistry extends Object
Container for prioritised list of Problem post-processors. This class is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description PostProcessorsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpProblemapplyPostProcessing(HttpProblem problem, ProblemContext context)Applies all registered post-processors on a given Problem, in prioritized order.voidregister(ProblemPostProcessor processor)voidreset()Removes all registered post-processors and registers default ones.
-
-
-
Method Detail
-
reset
public void reset()
Removes all registered post-processors and registers default ones. Used mainly for Quarkus dev mode (live-reload) tests where there's a need to reset registered processors because of config change.
-
register
public void register(ProblemPostProcessor processor)
-
applyPostProcessing
public HttpProblem applyPostProcessing(HttpProblem problem, ProblemContext context)
Applies all registered post-processors on a given Problem, in prioritized order.- Parameters:
problem- Original Problem produced by Exception Mappercontext- Additional info on cause (original exception caught by ExceptionMapper) and HTTP request- Returns:
- Enhanced version of original Problem
-
-