Jaideep Dhok created LENS-23:
--------------------------------
Summary: Inject session handle instead of taking it as query
parameter
Key: LENS-23
URL: https://issues.apache.org/jira/browse/LENS-23
Project: Apache Lens
Issue Type: Improvement
Components: client, server
Affects Versions: 2.0
Reporter: Jaideep Dhok
Currently most of our API calls take session handle in its complete XML
serialized form. This session handle either has to be passed as a query or as a
form parameter in almost all calls.
Jersey has custom injectors which are supposed to be used precisely for cases
like this. The session handle object could be extracted from request and
injected either as a request param, or as a resource field variable.
https://jersey.java.net/documentation/latest/ioc.html
I think instead of taking session handle as a query or form param everywhere,
we should take it as a header attribute and use injector to pass it to all the
Jersey resources.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)