Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.util
Class ApplicationInitializedFilter

java.lang.Object
  extended by com.jivesoftware.base.util.ApplicationInitializedFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Filter which will not allow any pages to be loaded if the LifeCycleListeners did not come up properly. If the 'jiveClusterID' filter init param is set in web.xml, this filter also sets a cookie identifying the server in which the request was received. This allows front end load balancers that rely on a cookie to route sticky sessions. The name of the resultant cookie will be 'jiveClusterID'


Constructor Summary
ApplicationInitializedFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
static boolean isInitialized()
          Returns true if the application has initialized, false otherwise.
static void setInitialized(boolean initialized)
          Initialization setter to force initialization once the setup tool has completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInitializedFilter

public ApplicationInitializedFilter()
Method Detail

init

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

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              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

isInitialized

public static boolean isInitialized()
Returns true if the application has initialized, false otherwise.


setInitialized

public static void setInitialized(boolean initialized)
Initialization setter to force initialization once the setup tool has completed.

Parameters:
initialized -

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.