[jax-rs-spec users] [jsr339-experts] Retrying request from ClientResponseFilter?

From: Jan Algermissen <>
Date: Wed, 8 May 2013 15:22:56 +0200

Marek, Bill, Sergey,

based on your knowledge on the internals of your JAX-RS implementations, do you think it would be a problem to send an HTTP request from a client response filter and then substitute the original response data with the response received from that 'second' request?

My use case is a filter that shoud do auth token refresh and make that transparent to the code that issued the initial request.

Sounds strange, I know, but parsing e.g. WWW-Authenticate response header in the filter for sanity checks and then again in the 'client code' to extract real auth failure cause isn't really any better.