What is the best way to access the request entity when a filter is
invoked?
A bit of background:
1. The filter needs to access the entity because it may be POST of
application/x-www-form-urlencoded content.
2. The filter probably shouldn't assume the object type of the entity
(e.g. MultivaluedMapImpl), because any type of Java object could
represent the message body, to be encoded in a deeper layer
(MessageBodyWriter?)
So, what's the best way to get the encoded version of the entity in the
filter handle method, without inadvertently changing other states (e.g.
prematurely writing headers, etc.)?
Alternately, is it a safe enough assumption that POST of
x-www-form-urlencoded will ALWAYS have an entity type of
MultivaluedMapImpl?
Paul