jakartaee / rest

Jakarta RESTful Web Services
Other
362 stars 119 forks source link

Allow retrieval of filter chain properties in resource class #416

Open glassfishrobot opened 11 years ago

glassfishrobot commented 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.

Affected Versions

[2.0]

glassfishrobot commented 6 years ago
glassfishrobot commented 11 years ago

@glassfishrobot Commented Reported by algermissen

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAX_RS_SPEC-411