Hi,
Just to make it simpler.. What would be the counterpart of
WebServiceContext for ReST services?
Again, my thanks.
Gabo
Gabo Manuel wrote:
Hi All,
I was hoping to have some things set in the handlers, e.g. username
passed in the Authorization token; and have that username (or a java
bean) available when the method is finally invoked.
I've read somewhere that the class org.apache.cxf.message.Exchange
would have the in and out Message available for JAX-RS services,
however, I am not sure how to get the said object. I have tried having
the following as method parameter or as class variable to no avail:
@Context
Exchange ex
As a parameter, the handlers are able to finish, but when it comes to
invocation of the actual method/endpoint I get this exception:
<ns1:faultstring
xmlns:ns1="http://cxf.apache.org/bindings/xformat">java.lang.IllegalArgumentException:
wrong number of arguments</ns1:faultstring>
As a class variable, the said object is always null.
Again, my thanks.
Gabo
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.0/1770 - Release Date: 11/5/2008 5:36 PM