On Mon, Jun 15, 2009 at 10:20:07AM +0100, Sergey Beryozkin wrote:
> Hi,
>
> You should be able to get to a current message like this :
>
> Message currentMessage =
> org.apache.cxf.phase.PhaseInterceptorChain.getCurrentMessage();
> Next you can get to the actual HttpServletRequest like this
> :currentMessage.get("HTTP.REQUEST"); //
> AbstractHttpDestination.HTTP_REQUESTYou might want to use the CXf JAX-RS
> URITemplate implementation which will help to extract the
> keys :URITemplate t = new
> URITemplate("/rest/{key}/products/list");MultivaluedMap<String, String> map =
> new MetadataMap<String,
> String>();t.match(relativeURI, map);map.get("key");
> cheers, SergeyThank you, looks like this is what I really need. Is it a common way, or just a "hack", which might not work in the next version of CXF? -- Eugene N Dzhurinsky
pgp2a5TK48PTa.pgp
Description: PGP signature
