I want to override one of the HTTP Headers as soon as I get the request from the consumer. I have a class that extends HandlerInterceptorAdapter where I intercept the HTTP request. Is there a way to override the one of the header values inside the below listed method?
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
}