Class ProblemLogger
java.lang.Object
io.quarkiverse.httpproblem.postprocessing.ProblemLogger
- All Implemented Interfaces:
ProblemPostProcessor
-
Field Summary
Fields inherited from interface io.quarkiverse.httpproblem.postprocessing.ProblemPostProcessor
DEFAULT_ORDERING, LOG_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(HttpProblem problem, ProblemContext context) Interceptor method for HttpProblems.intpriority()Defines order in which processors are triggered.
-
Constructor Details
-
ProblemLogger
-
-
Method Details
-
apply
Description copied from interface:ProblemPostProcessorInterceptor method for HttpProblems. In case problem should be changed or enhanced, one can use 'HttpProblem.builder(httpProblem)'.Implementations should be thread-safe.
- Specified by:
applyin interfaceProblemPostProcessor- Parameters:
problem- Original HttpProblem, possibly processed by other processors with higher priority.context- Additional, internal metadata not included in HttpProblem- Returns:
- Can be original HttpProblem (for peek-type processors), changed copy or completely new HttpProblem (for map-type processors.
-
priority
public int priority()Description copied from interface:ProblemPostProcessorDefines order in which processors are triggered. Bigger value means precedence before processors with lower priority. When two processors have the same priority then order of invocation is undefined.- Specified by:
priorityin interfaceProblemPostProcessor
-