es.rediris.papi.filter
Class SessionToHeadersTranslator

java.lang.Object
  extended by 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

Constructor Summary
SessionToHeadersTranslator()
           
 
Method Summary
 SessionToHeadersRequestWrapper applySessionVarTranslations(ServletRequest request)
          Apply the translations specified in the configuration file to the request param
 void init(String configFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionToHeadersTranslator

public SessionToHeadersTranslator()
Method Detail

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.