[prev in list] [next in list] [prev in thread] [next in thread]
List: wink-dev
Subject: [jira] [Commented] (WINK-385) Not able to inject @Context (HttpHeaders) at sub-resource
From: "Luciano Resende (JIRA)" <jira () apache ! org>
Date: 2013-03-17 4:12:12
Message-ID: JIRA.12635536.1362564189613.453260.1363493532754 () arcas
[Download RAW message or body]
[ 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic