How to match http request and response using Jersey ContainerRequestFilter and ContainerResponseFilter
问题 I have a highly concurrent server and need to implement some special logging. I need an easy way to match the request to the response. The filter() in ContainerResponseFilter has both the request and response . How ever I can not access the http post content because the stream has already been read. Is there some way I can add an ID in the ContainerRequestFilter filter() and somehow have it automatically returned when the ContainerResponseFilter filter() is called? I can not modify the true