Hi
JAX-RS HttpHeaders should probably have getAcceptableEncodings,
similarly to the language and media type support methods...
I guess the relevant code can be moved to HttpUtils so that other custom
interceptors can reuse the validation code
I'll have a look
Cheers. Sergey
On 20/11/14 16:30, gigi2 wrote:
Hello,
We have a RESTful webservices based on cxf-bundle-jaxrs:jar:2.6.9. Now we
plan to allow gzip compressing response payload and add validation for
'accept-encoding' header values to make sure the acceptable encoding is
supported. It looks to me GZIPOutInterceptor does exactly the right
validation that I want. But the validation method is private and I have to
copy the code to perform validation before my services start to process the
request, unless I also include GZIPOutInterceptor in my jaxrs:inInterceptors
lists, which feels a little awkward to me.
Can someone please point a better way, if there is one? Any
hints/suggestions are deeply appreciated
--
View this message in context:
http://cxf.547215.n5.nabble.com/validation-of-accept-encoding-before-processing-request-using-GZIPOutInterceptor-tp5751297.html
Sent from the cxf-user mailing list archive at Nabble.com.