|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.websocket.WebSocketServlet
weblogic.servlet.http.AbstractAsyncServlet
org.atmosphere.cpr.AtmosphereServlet
org.atmosphere.guice.AtmosphereGuiceServlet
public class AtmosphereGuiceServlet
Google Guice Integration. To use it, just do in web.xml: {@code <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 {
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.atmosphere.cpr.AtmosphereServlet |
|---|
AtmosphereServlet.Action, AtmosphereServlet.AtmosphereConfig, AtmosphereServlet.AtmosphereHandlerWrapper |
| Field Summary | |
|---|---|
static String |
JERSEY_PROPERTIES
|
| Constructor Summary | |
|---|---|
AtmosphereGuiceServlet()
|
|
| Method Summary | |
|---|---|
protected boolean |
detectSupportedFramework(javax.servlet.ServletConfig sc)
Auto-detect Jersey when no atmosphere.xml file are specified. |
| Methods inherited from class weblogic.servlet.http.AbstractAsyncServlet |
|---|
notify |
| Methods inherited from class org.eclipse.jetty.websocket.WebSocketServlet |
|---|
checkOrigin, init, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, 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 |
| Methods inherited from interface org.atmosphere.di.ServletContextProvider |
|---|
getServletContext |
| Field Detail |
|---|
public static final String JERSEY_PROPERTIES
| Constructor Detail |
|---|
public AtmosphereGuiceServlet()
| Method Detail |
|---|
protected boolean detectSupportedFramework(javax.servlet.ServletConfig sc)
detectSupportedFramework in class AtmosphereServletsc - ServletConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||