Hi All, I'm writing a request handler which deals with the method going to be invoked and the parameters provided (both query and path, both name and value of each parameter). However i'm having some problem getting at the path paramter names and values - well I can ge the names but i need the values too.
It seems like the easiest way to get path paramters is to use UriInfo(message) then getPathParameters(). But this requires the URI_TEMPLATE.TEMPLATE_PARAMETERS to be set on the message to be used in the UriInfo constructor. This doesn't seem to be getting done until after the request handlers are called in the JAXRSInInterceptor. In CXF 2.2.1 - Request handlers are called on line 158 but the values for the URI_TEMPLATE.TEMPLATE_PARAMETERS are not set on the message until line 191. I figure I can always rerun findTargetMethod() or match the uri template and populate it myself but thought there might be a way of getting this which is better. Any tips? Thanks. Kynan -- View this message in context: http://www.nabble.com/JAXRS---Best-way-to-retrieve-path-parameters-in-request-handler-tp25287837p25287837.html Sent from the cxf-user mailing list archive at Nabble.com.
