On Aug 20, 2009, at 8:35 PM, Rabick, Mark A (IS) wrote:
> I’ve got a simple ContainerRequestFilter to view a request so I can
> see that is being passed to the server but it shows me what appears
> to be the initial request before the
> PackagesResourceConfig.getMediaTypeMappings() is supposed to have
> removed the extension on the URI and added the mapped media type to
> the Accept header. Is there any way to see the ‘modified’ request
> being passed to the resource mapping?
>
Not for filters in the stable releases as the conneg feature was not
written as a ContainerRequestFilter.
In the trunk i have fixed the issue you are observing and you can
explicitly add an extension of UriConnegFilter in an appropriate order
e.g. add the logging filter after this.
If you use getMediaTypeMappings() then the UriConnegFilter will be
added to the end of the container request filters. If a
UriConnegFilter is already present then no filter will be added to the
end.
Paul.
> --mark
>
> _______________________________________________
> Mark A. Rabick
> Software Engineer
> Northrop Grumman - Integrated Mission Systems (IS/DSD/IMS)
> 3200 Samson Way
> Bellevue, NE 68123
> Ph: (402) 293-7091
> Em: mark.rabick_at_ngc.com
> Remember PFC Ross A. McGinnis...
> http://www.army.mil/medalofhonor/McGinnis/index.html
> ... MA2 Michael A. Monsoor, Lt. Michael P. Murphy, Cpl. Jason
> Dunham, SFC Paul Ray Smith and the rest...
> http://www.cmohs.org/recipients/most_recent.htm
>
>