Hi Gabo,

All I mean is - how can the whole process be done at the class level.
As in, instead of having a method parameter, how can I get it in an instance
variable (and may be perform some operation on it)?

PS: CXF does support injection of HttpHeaders and SecurityContext but none
of these can help in achieving my goal, which is "injection of
Authorization" (manually, in this case)

Thanks


Gabo Manuel wrote:
> 
> 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 able to do it using @Context HttpHeader injection by CXF and then
>> extracting Authorization info from that.
>> However, i need to do that for all the resource mappings.
>> Is there any way I can avoid replicating code in each method?
>> Is there any 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
>>   
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com 
>> Version: 8.0.237 / Virus Database: 270.10.25/1957 - Release Date:
>> 02/17/09 07:07:00
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Extracting-HTTP-authorization-header-tp22076857p22077094.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to