es.rediris.papi.filter
Class SessionToHeadersTranslator
java.lang.Object
es.rediris.papi.filter.SessionToHeadersTranslator
public class SessionToHeadersTranslator
- extends Object
Translate session values stored by the PAPIFilter into headers in the
HttRequest.
It translate session variables, or may add suffix using the session variable names.
- Author:
- arcturus@us.es 16/11/2007
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionToHeadersTranslator
public SessionToHeadersTranslator()
init
public void init(String configFile)
throws Exception
- Throws:
Exception
applySessionVarTranslations
public SessionToHeadersRequestWrapper applySessionVarTranslations(ServletRequest request)
- Apply the translations specified in the configuration file to the request param
- Parameters:
request
- The ServletRequest that will be populated with the headers
- Returns:
- A CookieToHeaderRequestWrapper, a class that wraps ServletRequest and have
all the original headers and the new ones. It«s also respond to the method
getRemoteUser with the value specified with the header REMOTE_USER.