I have a springboot filter as below implementing ContainerResponseFilter, ContainerRequestFilter. I am setting a variable "key" in the request filter and using it in the response filter method. Pls advise if this variable "key" threadsafe. Will this key value change when the multiple requests access this filter?
public class CachedResponseFilter implements ContainerResponseFilter, ContainerRequestFilter {private String key;protected boolean requestFilter(ContainerRequestContext requestContext) {key = "test";}protected boolean responseFilter(ContainerRequestContext requestContext) { println("key"+key);}}