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
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
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
-HTTP-authorization-header-tp22076857p22077094.html
Sent from the cxf-user mailing list archive at Nabble.com.
-HTTP-authorization-header-tp22076857p22076857.html
Sent from the cxf-user mailing list archive at Nabble.com.
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.
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
in context:
http://www.nabble.com/Extracting-HTTP-authorization-header-tp22076857p22078097.html
Sent from the cxf-user mailing list archive at Nabble.com.
://www.nabble.com/Extracting-HTTP-authorization-header-tp22076857p22078097.html
Sent from the cxf-user mailing list archive at Nabble.com.