com.liferay.portal.servlet.filters.autologin
Class AutoLoginFilter

java.lang.Object
  extended bycom.liferay.portal.servlet.filters.autologin.AutoLoginFilter
All Implemented Interfaces:
javax.servlet.Filter

public class AutoLoginFilter
extends java.lang.Object
implements javax.servlet.Filter

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
AutoLoginFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
protected  java.lang.String getLoginRemoteUser(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.http.HttpSession ses, java.lang.String[] credentials)
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoLoginFilter

public AutoLoginFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

getLoginRemoteUser

protected java.lang.String getLoginRemoteUser(javax.servlet.http.HttpServletRequest req,
                                              javax.servlet.http.HttpServletResponse res,
                                              javax.servlet.http.HttpSession ses,
                                              java.lang.String[] credentials)
                                       throws java.lang.Exception
Throws:
java.lang.Exception