Hi

This should work in 2.1.4 without problems.
Can you post please on-the-wire representation of MyHeaderKeyName ?
Thanks, Sergey 

-----Original Message-----
From: HG-1 [mailto:[email protected]] 
Sent: 18 March 2009 17:38
To: [email protected]
Subject: How to get HTTP header values for a REST app


All,

How do I get HTTP header values for a REST interface.
I have tried to get HTTP header  values in in my REST application using
CXF
2.1.4 and 2.1.3 without success. Here is my method declaration.

@GET
@Path("/get/{id}")
public Response getInfo(@HeaderParam("MyHeaderKeyName") String keyValue,
@PathParam(value = "id") String myid)

I also tried:
@GET
@Path("/get/{id}")
public Response getInfo(@HeaderParam(value="MyHeaderKeyName") String
keyValue, @PathParam(value = "id") String myid)

When my method is called, keyValue is always null.
Any suggestion would be helpful.

Thanks for your help.
HG
-- 
View this message in context:
http://www.nabble.com/How-to-get-HTTP-header-values-for-a-REST-app-tp225
84486p22584486.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to