Open glassfishrobot opened 11 years ago
Currently a resource class cannot access properties that have been added to the filter chain context. As it is the only way to pass information from a filter to the resource class, add the following methods to the injectable Request class:
Object getProperty(String name) Collection getPropertyNames()
If it makes sense to pass information from filter to response filter chain, maybe add
void setProperty(String name, Object object) void removeProperty(String name)
also.
[2.0]
@glassfishrobot Commented Reported by algermissen
@glassfishrobot Commented This issue was imported from java.net JIRA JAX_RS_SPEC-411
Currently a resource class cannot access properties that have been added to the filter chain context. As it is the only way to pass information from a filter to the resource class, add the following methods to the injectable Request class:
Object getProperty(String name) Collection getPropertyNames()
If it makes sense to pass information from filter to response filter chain, maybe add
void setProperty(String name, Object object) void removeProperty(String name)
also.
Affected Versions
[2.0]