Class PostProcessorsRegistry


  • public final class PostProcessorsRegistry
    extends Object
    Container for prioritised list of Problem post-processors. This class is thread-safe.
    • Constructor Detail

      • PostProcessorsRegistry

        public PostProcessorsRegistry()
    • 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.
      • 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 Mapper
        context - Additional info on cause (original exception caught by ExceptionMapper) and HTTP request
        Returns:
        Enhanced version of original Problem