org.alfresco.web.site.servlet
Class MTAuthenticationFilter

java.lang.Object
  extended by org.alfresco.web.site.servlet.MTAuthenticationFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Filter providing access to the servlet request for the SlingshotPageViewResolver downstream. This enables the user context to be bound to the RequestContext earlier in the SpringSurf lifecycle than would normally be available. This is essential for MT authentication as resolving the view name from the page url requires a remote call, which for MT must be authenticated (even for authentication=none webscripts) to resolve the correct Tenant.


Constructor Summary
MTAuthenticationFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
           
static javax.servlet.http.HttpServletRequest getCurrentServletRequest()
           
 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

MTAuthenticationFilter

public MTAuthenticationFilter()
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

getCurrentServletRequest

public static javax.servlet.http.HttpServletRequest getCurrentServletRequest()
Returns:
HttpServletRequest for the current thread

destroy

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.