org.atmosphere.guice
Class AtmosphereGuiceServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eclipse.jetty.websocket.WebSocketServlet
              extended by weblogic.servlet.http.AbstractAsyncServlet
                  extended by org.atmosphere.cpr.AtmosphereServlet
                      extended by org.atmosphere.guice.AtmosphereGuiceServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, org.apache.catalina.CometProcessor, org.jboss.servlet.http.HttpEventServlet

public class AtmosphereGuiceServlet
extends AtmosphereServlet

Google Guice Integration

Author:
Jeanfrancois Arcand, Richard Wallace
See Also:
Serialized Form

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
           
 
Fields inherited from class org.atmosphere.cpr.AtmosphereServlet
ATMOSPHERE_HANDLER, ATMOSPHERE_RESOURCE, ATMOSPHERE_SERVLET, BROADCAST_FILTER_CLASSES, BROADCASTER_CACHE, BROADCASTER_CLASS, BROADCASTER_FACTORY, broadcasterClassName, cometSupport, config, DEFAULT_NAMED_DISPATCHER, DISABLE_ONSTATE_EVENT, GAE_BROADCASTER, initParams, isBroadcasterSpecified, isCometSupportConfigured, isCometSupportSpecified, isFilter, isSessionSupportSpecified, JERSEY_BROADCASTER, JERSEY_CONTAINER, logger, possibleAtmosphereHandlersCandidate, PRIMEFACES_SERVLET, PROPERTY_BLOCKING_COMETSUPPORT, PROPERTY_COMET_SUPPORT, PROPERTY_NATIVE_COMETSUPPORT, PROPERTY_SERVLET_MAPPING, PROPERTY_SESSION_SUPPORT, PROPERTY_USE_STREAM, RESUME_AND_KEEPALIVE, RESUME_ON_BROADCAST, RESUMED_ON_TIMEOUT, SUPPORT_SESSION, useBlockingImplementation, useNativeImplementation, useStreamForFlushingComments, WEB_INF, WEBSOCKET_ATMOSPHEREHANDLER, WEBSOCKET_SUPPORT
 
Constructor Summary
AtmosphereGuiceServlet()
           
 
Method Summary
protected  boolean detectSupportedFramework(ServletConfig sc)
          Auto-detect Jersey when no atmosphere.xml file are specified.
 
Methods inherited from class org.atmosphere.cpr.AtmosphereServlet
addAtmosphereHandler, addAtmosphereHandler, addAtmosphereHandler, addInitParameter, autoDetectAtmosphereHandlers, autoDetectContainer, configureBroadcaster, createCometSupportResolver, destroy, doCometSupport, doDelete, doGet, doHead, doInitParams, doOptions, doPost, doPut, doRequest, doResponse, doTimeout, doTrace, doWebSocketConnect, event, event, getAtmosphereConfig, getBroadcasterCacheClassName, getBroadcasterConfig, getBroadcasterFactory, getCometSupport, getDefaultBroadcasterClassName, getFiles, init, isUseStreamForFlushingComments, loadAtmosphereDotXml, loadConfiguration, readSystemProperties, removeAllAtmosphereHandler, removeAllInitParams, removeAtmosphereHandler, sessionSupport, setBroadcasterCacheClassName, setBroadcasterFactory, setCometSupport, setDefaultBroadcasterClassName, setUseStreamForFlushingComments
 
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
 

Field Detail

JERSEY_PROPERTIES

public static final String JERSEY_PROPERTIES
Constructor Detail

AtmosphereGuiceServlet

public AtmosphereGuiceServlet()
Method Detail

detectSupportedFramework

protected boolean detectSupportedFramework(ServletConfig sc)
Auto-detect Jersey when no atmosphere.xml file are specified.

Overrides:
detectSupportedFramework in class AtmosphereServlet
Parameters:
sc - ServletConfig
Returns:
true if Jersey classes are detected


Copyright © 2010. All Rights Reserved.