Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
way by which I can specify a particular method to be executed, irrespective of the request? (where I can have this extraction code, and then store the extracted header in some instance variable.) Thanks -- View this message in context: http://www.nabble.com/Extracting-HTTP-authorization-header

Re: Extracting HTTP authorization header

2009-02-18 Thread Gabo Manuel
Hi, I am not sure what you mean by all resource mappings but the following should work: @HeaderParam(Authorization) on a method parameter of a service implementation will extract the authorization header. Hth. Gabo CXFbanda wrote: Hi, I need to extract HTTP authorization header. I am

Re: Extracting HTTP authorization header

2009-02-18 Thread Gabo Manuel
Hi, That was rather hard to understand... lemme rephrase that: What do you mean by i need to do that for all the resource mappings.? Also, see sample below: @GET @Path(/somepath) public void someMethod( @HeaderParam(Authorization) String authorization) { I hope

Re: Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
-HTTP-authorization-header-tp22076857p22077094.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Extracting HTTP authorization header

2009-02-18 Thread Sergey Beryozkin
-HTTP-authorization-header-tp22076857p22076857.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Extracting HTTP authorization header

2009-02-18 Thread Sergey Beryozkin
this extraction code, and then store the extracted header in some instance variable.) Thanks -- View this message in context: http://www.nabble.com/Extracting-HTTP-authorization-header-tp22076857p22076857.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
with @Context for instance variables :-) ___ Coming back to the topic, please let me know if there is a possibility of adding pre/post methods. (as Sergey mentioned) That will surely help my purpose. -- View this message in context: http://www.nabble.com/Extracting-HTTP

Re: Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
in context: http://www.nabble.com/Extracting-HTTP-authorization-header-tp22076857p22078097.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Extracting HTTP authorization header

2009-02-18 Thread Sergey Beryozkin
://www.nabble.com/Extracting-HTTP-authorization-header-tp22076857p22078097.html Sent from the cxf-user mailing list archive at Nabble.com.