com.nurelm.nucontent.authentication
Class AuthenticationFilter

java.lang.Object
  extended bycom.nurelm.nucontent.authentication.AuthenticationFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Intercepts all incoming requests and checks them against the authentication restrictions set in the system properties file. As of now, this system is for non-NuContent editors only.


Constructor Summary
AuthenticationFilter()
           
 
Method Summary
 void destroy()
          Destroy method for this filter
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 javax.servlet.FilterConfig getFilterConfig()
          Return the filter configuration object for this filter.
static java.lang.String getStackTrace(java.lang.Throwable t)
           
 void init(javax.servlet.FilterConfig filterConfig)
          Init method for this filter
 void log(java.lang.String msg)
           
 void setFilterConfig(javax.servlet.FilterConfig filterConfig)
          Set the filter configuration object for this filter.
 java.lang.String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationFilter

public AuthenticationFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     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

getFilterConfig

public javax.servlet.FilterConfig getFilterConfig()
Return the filter configuration object for this filter.


setFilterConfig

public void setFilterConfig(javax.servlet.FilterConfig filterConfig)
Set the filter configuration object for this filter.

Parameters:
filterConfig - The filter configuration object

destroy

public void destroy()
Destroy method for this filter

Specified by:
destroy in interface javax.servlet.Filter

init

public void init(javax.servlet.FilterConfig filterConfig)
Init method for this filter

Specified by:
init in interface javax.servlet.Filter

toString

public java.lang.String toString()
Return a String representation of this object.


getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable t)

log

public void log(java.lang.String msg)