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-tp22584486p22584486.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to