@Component
public class RequestValidationInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Please note, this interceptor can only return the response with the HTTP code 400 (FORMAT ERROR).
No business validation is present here, as business validation requires some specific options to process (ex, SCA approach, bank-profile configuration). It is implemented in the controllers and services layers.
| Constructor and Description |
|---|
RequestValidationInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws IOException
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterIOExceptionCopyright © 2020. All rights reserved.