With Jersey 1.17, the corresponding method is ContainerRequest#getProperties()
which returns a mutable Map<String, Object>
to which you can put attributes that will be synchronized with the ServletRequest
.
You can retrieve a property in your Jersey resource from HttpContext
:
@Context private HttpContext httpCtx ... final String xml = httpCtx.getProperties().get("xml")
Read full article from java - How I can add parameter to request from jersey filter request (ContainerRequestFilter) - Stack Overflow
No comments:
Post a Comment