I am trying to get the session attributes/variables for an analyzer report using Java. I believe using IPentahoSession from the org.pentaho.platform.api.engine jar is the right approach for this:
Code:
IPentahoSession session = PentahoSessionHolder.getSession();
String host = (String)session.getAttribute("host");
But, "host" doesn't seem to be a real attribute, since it returns null. I have tried to get several attributes which seem like likely candidates ("Host", "hostname", "Hostname", "username", etc). But they all return null.

I can't figure out where to find a list of the possible attributes that you can retrieve. Is there some documentation on this? Are there some examples of working java code to retrieve attributes?