net.optionfactory.spring.problems.web.OmitDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of problems-web Show documentation
Show all versions of problems-web Show documentation
optionfactory-spring problems web
package net.optionfactory.spring.problems.web;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import net.optionfactory.spring.problems.Problem;
import org.springframework.web.method.HandlerMethod;
public class OmitDetails implements ProblemTransformer {
@Override
public Problem transform(Problem problem, HttpServletRequest request, HttpServletResponse response, HandlerMethod handler, Exception ex) {
problem.details = null;
return problem;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy