public abstract class FilterFacade
extends java.lang.Object
implements javax.servlet.Filter
| Modifier and Type | Field and Description | 
|---|---|
| protected javax.servlet.FilterConfig | filterConfigFilterConfig object this filter was initialized with | 
| protected java.lang.String | forwardAddressAddress to forward new requests to | 
| protected org.apache.log4j.Logger | loggerLog4J Logger | 
| static java.lang.String | USER_CLEARANCE_ATTRIBUTEThe user clearance attribute session property name | 
| static java.lang.String | USER_CREDENTIALS_ATTRIBUTEThe user credentials attribute session property name | 
| static java.lang.String | USER_DN_ATTRIBUTEThe user distinguished name attribute session property name | 
| static java.lang.String | USER_NAME_ATTRIBUTEThe user name attribute session property name | 
| Constructor and Description | 
|---|
| FilterFacade() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroy() | 
| void | doFilter(javax.servlet.ServletRequest req,
        javax.servlet.ServletResponse rsp,
        javax.servlet.FilterChain chain) | 
| void | init(javax.servlet.FilterConfig filterConfig)Run once on server start-up to initialize the Filter. | 
| protected abstract boolean | setupUserCredentials(javax.servlet.http.HttpSession session)Set up the user credentials and classification properties | 
| protected abstract boolean | setupUserName(javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpSession session)Gets the user name and sets up the user session attributes | 
| void | unauthorizedRequest(javax.servlet.ServletResponse rsp)Displays a default unauthorized message if either setupUserName() or 
 setupUserCrenditals() returns false. | 
protected org.apache.log4j.Logger logger
public static final java.lang.String USER_CLEARANCE_ATTRIBUTE
public static final java.lang.String USER_CREDENTIALS_ATTRIBUTE
public static final java.lang.String USER_DN_ATTRIBUTE
public static final java.lang.String USER_NAME_ATTRIBUTE
protected javax.servlet.FilterConfig filterConfig
protected java.lang.String forwardAddress
public void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest req,
            javax.servlet.ServletResponse rsp,
            javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void unauthorizedRequest(javax.servlet.ServletResponse rsp)
                         throws java.io.IOException
rsp - response to write tojava.io.IOExceptionpublic void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - configuration defined in the web.xml filejavax.servlet.ServletExceptionprotected abstract boolean setupUserName(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpSession session)
request - the http requestsession - the http sessionprotected abstract boolean setupUserCredentials(javax.servlet.http.HttpSession session)
session - the http session