Package org.atmosphere.cpr
-
Interface Summary Interface Description AnnotationProcessor An annotation processor for configuring theAtmosphereFramework.ApplicationConfig Web.xml init-param configuration supported by Atmosphere.AsyncIOInterceptor A filter-like API that allow anAtmosphereInterceptorto intercept the response before it gets written back to the client.AsyncIOWriter An Asynchronous I/O Writer is used by aAtmosphereResponsewhen writing data.AsyncSupport<E extends AtmosphereResource> Atmosphere's supported WebServer must implement this interface in order to be auto detected by theAtmosphereFramework.AsyncSupportListener A listener that can be used to trackAsyncSupportevents like SUSPEND, RESUME, TIMEOUT, DESTROYED and CLOSEDAsyncSupportResolver This interface is used byAtmosphereFrameworkto determine which AsyncSupport instance should be usedAtmosphereConfig.ShutdownHook A shutdown hook that will be called when theAtmosphereFramework.destroy()method gets invoked.AtmosphereConfig.StartupHook A Startup hook that will be called when theAtmosphereFramework.init()method complete.AtmosphereFrameworkListener Lifecycle listener forAtmosphereFrameworkAtmosphereHandler Implementation ofAtmosphereHandlerallows creation of event-driven web applications which are hosted in the browser.AtmosphereInterceptor Intercept the dispatch ofAtmosphereResourcebefore they get dispatched toAtmosphereHandlers.AtmosphereObjectFactory<Z> Customization point for Atmosphere to instantiate classes.AtmosphereRequest An Atmosphere request representation.AtmosphereRequest.Builder AtmosphereResource AnAtmosphereResourceencapsulates the mechanism toAtmosphereResource.suspend(),AtmosphereResource.resume()and broadcast (AtmosphereResource.getBroadcaster()) messages among suspended resources.AtmosphereResourceEvent An AtmosphereResourceEvent is created every time an event occurs, like when aBroadcaster.broadcast(java.lang.Object)is executed, when a browser remotely closes the connection or when a suspended resource times out or gets resumed.AtmosphereResourceEventListener Receive notifications when resume, client disconnect or broadcast events occur.AtmosphereResourceFactory A Factory used to manageAtmosphereResourceinstances.AtmosphereResourceFactory.Async An interface to use in order to retrieve anAtmosphereResourceinside a cluster.AtmosphereResourceHeartbeatEventListener Receive notifications when heartbeat events occur.AtmosphereResourceListener Listener for whenAtmosphereResourcegets suspended and disconnected.AtmosphereResourceSession The AtmosphereResourceSession is managed by theAtmosphereResourceSessionFactory.AtmosphereResourceSessionFactory Factory forAtmosphereResourceSessioninstancesAtmosphereResponse An Atmosphere's response representation.AtmosphereResponse.Builder AtmosphereServletProcessor Simple interface that can be used to wrap aServletfrom anAtmosphereHandler.Broadcaster A Broadcaster is responsible for delivering messages to its subscribedAtmosphereResources, which are representing suspended responses.BroadcasterCache A BroadcasterCache is a cache for broadcasted messages.BroadcasterCacheListener Listener forBroadcasterCacheBroadcasterConfig.FilterManipulator Manipulate the message before and after they are getting filtered byBroadcastFilterBroadcasterFactory Factory forBroadcasterused by Atmosphere when creating broadcasters.BroadcasterLifeCyclePolicyListener Simple listener to be used to trackBroadcasterLifeCyclePolicyevents.BroadcasterListener A listener for aBroadcaster's event lifecycle.BroadcastFilter Transform a message before it get broadcasted toAtmosphereHandler.onStateChange(org.atmosphere.cpr.AtmosphereResourceEvent).BroadcastFilterLifecycle Add lifecycle method to theBroadcastFilterinterface.ClusterBroadcastFilter SpecializeBroadcastFilterused when clustering is enabled.CompletionAware The CompletionAware interface is used by a class implementing theAtmosphereResponseinterface to be notified when writing to the response has been completed.FrameworkConfig Request attribute a framework integrator can use to lookup Atmosphere internal objects.HeaderConfig This interface contains all Atmosphere headers shared between the client and the server.KeepOpenStreamAware The KeepOpenStreamAware interface is used by a class implementing theAsyncIOWriterinterface to indicate the closing of the underlining stream is managed elsewhere and invoking theAsyncIOWriter.close(AtmosphereResponse)method does not close the stream.MetaBroadcaster Broadcast events to all or a subset of availableBroadcasters based on theirBroadcaster.getID()value.MetaBroadcaster.MetaBroadcasterCache Cache message if noBroadcastermaps theMetaBroadcaster.broadcastTo(String, Object)PerRequestBroadcastFilter An extendedBroadcastFilterthat can be used to filter based onAtmosphereResource.Serializer Serialize theObjectthat was used as parameter toBroadcaster.broadcast(java.lang.Object). -
Class Summary Class Description Action An Action is used byAtmosphereInterceptor,AsyncSupportandAtmosphereFrameworkto determine what to do with a request, e.g suspend it, resume it, etc.AnnotationHandler A class that handles the results of an annotation scan.AnnotationScanningServletContainerInitializer A ServletContainerInitializer that scans for annotations, and places them in a map keyed by annotation type in the servlet context.AsynchronousProcessor Base class which implement the semantics of suspending and resuming of a Comet/WebSocket Request.AsyncIOInterceptorAdapter An Adapter forAsyncIOInterceptor.AsyncIOWriterAdapter Adapter class forAsyncIOWriter.AsyncSupportListenerAdapter A default implementation ofAsyncSupportListenerAtmosphereConfig This class contains information about the current state of theAtmosphereFramework.AtmosphereFilter Atmosphere has support forFilters, delegating all work toAtmosphereServlet.AtmosphereFramework TheAtmosphereFrameworkis the entry point for the framework.AtmosphereFramework.AtmosphereHandlerWrapper AtmosphereFramework.DefaultAtmosphereObjectFactory AtmosphereFrameworkInitializer AtmosphereFrameworkListenerAdapter Adapter forAtmosphereFrameworkListenerAtmosphereInterceptorAdapter A SimpleAtmosphereInterceptorthat creates anAtmosphereInterceptorWriterand sets it as the defaultAsyncIOWriteron anAtmosphereResponse.AtmosphereInterceptorWriter AnAsyncIOWriterthat delegates the write operation to itsAsyncIOInterceptor.AtmosphereRequest.LocalAttributes AtmosphereRequestImpl An Atmosphere request representation.AtmosphereRequestImpl.Body AtmosphereRequestImpl.Builder AtmosphereRequestImpl.LazyComputation AtmosphereRequestImpl.NoOpsRequest AtmosphereResourceEventImpl AtmosphereResourceEventimplementation.AtmosphereResourceEventListenerAdapter An implementation ofAtmosphereResourceEventListenerwhich just log events with log level TRACE.AtmosphereResourceEventListenerAdapter.OnBroadcast On Broadcast's ListenerAtmosphereResourceEventListenerAdapter.OnClose On Close's ListenerAtmosphereResourceEventListenerAdapter.OnDisconnect On Disconnect's ListenerAtmosphereResourceEventListenerAdapter.OnHeartbeat On Heartbeat's ListenerAtmosphereResourceEventListenerAdapter.OnPreSuspend On PreSuspend's ListenerAtmosphereResourceEventListenerAdapter.OnResume On Resume's ListenerAtmosphereResourceEventListenerAdapter.OnSuspend On Suspend's ListenerAtmosphereResourceEventListenerAdapter.OnThrowable On Throwable's ListenerAtmosphereResourceImpl AtmosphereResourceListenerAdapter Adapter forAtmosphereResourceListenerAtmosphereResponseImpl An Atmosphere's response representation.AtmosphereResponseImpl.Builder AtmosphereServlet AtmosphereServlet that use Servlet 3.0 Async API when available, and fallback to native comet support if not available.AtmosphereSession An AtmosphereSession allow an application to keep track of the AtmosphereResource associated with a remote client.BroadcasterConfig BroadcasterFuture<E> SimpleFuturethat can be used when awaiting for aBroadcasterto finish its broadcast operation toAtmosphereHandler.BroadcasterLifeCyclePolicy This class can be used to configure the life cycle of aBroadcaster, eg.BroadcasterLifeCyclePolicy.Builder BroadcasterLifeCyclePolicyListenerAdapter Simple adapter listener to be used to trackBroadcasterLifeCyclePolicyevents.BroadcasterListenerAdapter An implementation ofBroadcasterListener.BroadcastFilter.BroadcastAction Simple class that tells theBroadcasterto broadcast or not the transformed value.BroadcastFilterAdapter Adapter forPerRequestBroadcastFilter.ContainerInitializer Initializer for the AtmosphereFramework per servlet instance, this initializer is called during web-application startup lifecycle (since Servlet 3.0).DefaultAnnotationProcessor AnAnnotationProcessorthat selects between a ServletContextInitializer based scanner, and a bytecode based scanner based on .DefaultAsyncSupportResolver This is the default implementation of @link {AsyncSupportResolver}.DefaultAtmosphereResourceFactory A Factory used to manageAtmosphereResourceinstances.DefaultAtmosphereResourceSession DefaultAtmosphereResourceSessionFactory DefaultBroadcaster The defaultBroadcasterimplementation.DefaultBroadcaster.AsyncWriteToken DefaultBroadcaster.WriteQueue DefaultBroadcasterFactory This class is responsible for creatingBroadcasterinstances.DefaultMetaBroadcaster Broadcast events to all or a subset of availableBroadcasters based on theirBroadcaster.getID()value.Deliver A Deliver is anBroadcaster's internal token that is created before the message gets Broadcaster.HeartbeatAtmosphereResourceEvent Specifies to the observable thatAtmosphereResourceHeartbeatEventListener.onHeartbeat(org.atmosphere.cpr.AtmosphereResourceEvent)should be invoked when it fires event to observers.MetaBroadcaster.NoCache MetaBroadcaster.ThirtySecondsCache Flush the cache every 30 seconds.Meteor AMeteoris a simple class that can be used from aServletto suspend, broadcast and resume responses.MeteorServlet Simple Servlet to use when AtmosphereMeteorare used.SessionSupport SessionTimeoutRestorer Capable of restoring HTTP session timeout to given value.SessionTimeoutSupport Allows invalidating and restoring HTTP session timeout.Universe Universe contains static reference to Atmosphere's Factories.WebSocketProcessorFactory Factory forWebSocketProcessor. -
Enum Summary Enum Description Action.TYPE The action's type.AtmosphereFramework.MetaServiceAction This enumeration represents all possible actions to specify in a meta service file.AtmosphereResource.TRANSPORT Broadcaster.POLICY Broadcaster.SCOPE BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY BroadcastFilter.BroadcastAction.ACTION Deliver.TYPE -
Exception Summary Exception Description AtmosphereMappingException Thrown whenAsynchronousProcessoris unable to map the request to anAtmosphereHandler.BroadcasterFactory.BroadcasterCreationException BroadcasterListener.BroadcastListenerException Throw this exception to interrupt theBroadcaster.destroy()operation.