I plan to migrate a project from Zuul to Spring Cloud Gateway. I have a "checksum code" and I don't know how to migrate it.
In the zuul code i get the url parameter and json body, I then do some checks.
HttpServletRequest request = requestContext.getRequest();
Map<String, String[]> parameterMap = getURLParamter(request);
String json = getBody(request);
if(securityCheck(parameterMap, json) == true) {
requestContext.addZuulRequestHeader("check-success-then-next-filter", "1");
} else {
requestContext.setResponseBody("{ msg:: check error }");
}
I have limited experience with Spring gateway please help me find what the equivalent code is in Spring Gateway,