org.richfaces.webapp

## Class PushServletContainerInitializer

- java.lang.Object
- - org.richfaces.webapp.AbstractServletContainerInitializer
  - - org.richfaces.webapp.PushServletContainerInitializer

-     public class PushServletContainerInitializer
      extends AbstractServletContainerInitializer

  Checks whether the `PushServlet` should be registered automatically on application startup.
  Author:
    Nick Belaevski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PushServletContainerInitializer()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onStartup(Set<Class<?>> clasess, javax.servlet.ServletContext servletContext)` If Atmosphere is on classpath and `PushFilter` wasn't registered in current `ServletContext`, the `PushServlet` will be registered automatically.

    - ### Methods inherited from class org.richfaces.webapp.AbstractServletContainerInitializer

      `getServletRegistration, hasFilterMapping`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PushServletContainerInitializer

          public PushServletContainerInitializer()

  - ### Method Detail

    - #### onStartup

          public void onStartup(Set<Class<?>> clasess,
                       javax.servlet.ServletContext servletContext)
                         throws javax.servlet.ServletException

      If Atmosphere is on classpath and `PushFilter` wasn't registered in current `ServletContext`, the `PushServlet` will be registered automatically.
      Throws:
        `javax.servlet.ServletException`

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.