Hi
Try injecting HttpHeaders context and get the header value from there.
Or do
@HeaderParam("Content-Type") MediaType mt
Cheers, Sergey
On Tue, May 24, 2011 at 9:21 AM, gunanup <[email protected]> wrote:
> Hello ,
>
> I am using cxf 2.2.8 version to generate a rest webservice
> (wadl) , My question is during request state how can we know which
> mediatype request is it ??? I tried and failed using @HeaderParam
>
> <
>
> @GET
> @Path("/getSum/{arg0}/{arg1}")
> public Integer getSum(@PathParam(value="arg0") int arg0
> ,@PathParam(value="arg1") int arg1,@HeaderParam("myheaderkeyname") String
> keyValue ) {
>
>
> return (arg1+arg0);
> }
>
>>
>
> could any one can help on this issue
>
> thanks
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/How-to-get-the-header-info-from-the-request-tp4421377p4421377.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
--
Sergey Beryozkin
Application Integration Division of Talend
http://sberyozkin.blogspot.com