I need to do some post processing of my data source when it gets loaded. One use case is that certain field titles need to be pulled out of the database based on the user's login. Another is that I need to set some data source properties based on so attributes in the session (set by another process).
What I would really like to do is extend the DataSource servlet so I can manipulate the DataSource object before its sent back out to the client. Then I can set properties, add remove fields, etc. and send the "scrubbed" response back out to the client.
Are there any examples of this? I could create my own DataSource loader servlet and do what I am referring to, but if there is a way to do it with the native API then I would rather do it that way.
What I would really like to do is extend the DataSource servlet so I can manipulate the DataSource object before its sent back out to the client. Then I can set properties, add remove fields, etc. and send the "scrubbed" response back out to the client.
Are there any examples of this? I could create my own DataSource loader servlet and do what I am referring to, but if there is a way to do it with the native API then I would rather do it that way.
Comment