[ 
https://issues.apache.org/jira/browse/WINK-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604501#comment-13604501
 ] 

Luciano Resende commented on WINK-385:
--------------------------------------

Looks like this is per the JAX-RS spec:
http://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-520005

Maybe you could workaround it by injecting the headers into the root resource, 
and pass it to the sub-resource.
                
> Not able to inject @Context (HttpHeaders) at sub-resource
> ---------------------------------------------------------
>
>                 Key: WINK-385
>                 URL: https://issues.apache.org/jira/browse/WINK-385
>             Project: Wink
>          Issue Type: Bug
>          Components: Common, Server
>    Affects Versions: 1.2
>         Environment: Windows 7, WAS 8.5, RSA 8.5.1
>            Reporter: Atul Kumar
>
> I want to inject HTTPHeaders at a sub-resource (without an @Path annotation), 
> but at run-time the instance doesn't get instantiated.
> For example:
> @Context
> private HttpHeaders httpHeaders;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to