<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:j2ee = "http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<listener>
<listener-class>org.atmosphere.samples.guice.GuiceChatConfig</listener-class>
</listener>
<description>Atmosphere Chat</description>
<display-name>Atmosphere Chat</display-name>
<servlet>
<description>AtmosphereServlet</description>
<servlet-name>AtmosphereServlet</servlet-name>
<servlet-class>org.atmosphere.guice.AtmosphereGuiceServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AtmosphereServlet</servlet-name>
<url-pattern>/chat/*</url-pattern>
</servlet-mapping>
</web-app>
and then
public class GuiceConfig extends GuiceServletContextListener {
- Author:
- Jeanfrancois Arcand, Richard Wallace
- See Also:
- Serialized Form
| Methods inherited from class org.atmosphere.cpr.AtmosphereServlet |
destroy, doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, event, event, event, framework, init |
| Methods inherited from class javax.servlet.http.HttpServlet |
getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Servlet |
getServletConfig, getServletInfo, service |
JERSEY_PROPERTIES
public static final String JERSEY_PROPERTIES
AtmosphereGuiceServlet
public AtmosphereGuiceServlet()
AtmosphereGuiceServlet
public AtmosphereGuiceServlet(boolean isFilter,
boolean autoDetectHandlers)
- Create an Atmosphere Servlet.
- Parameters:
isFilter - true if this instance is used as an AtmosphereFilter
AtmosphereGuiceServlet
public AtmosphereGuiceServlet(boolean isFilter,
boolean autoDetectHandlers,
boolean skipGuiceFilter)
Copyright © 2012. All Rights Reserved.