Class PushEndpoint

  • All Implemented Interfaces:
    org.atmosphere.cpr.AtmosphereHandler

    @AtmosphereHandlerService(path="/HILLA/push",
                              broadcaster=org.atmosphere.util.SimpleBroadcaster.class,
                              interceptors={org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor.class,org.atmosphere.client.TrackMessageSizeInterceptor.class,org.atmosphere.interceptor.SuspendTrackerInterceptor.class})
    @Singleton
    public class PushEndpoint
    extends org.atmosphere.handler.AtmosphereHandlerAdapter
    Sets up and configures the push channel.

    This class is initialized by Atmosphere and not Spring, so autowiring is handled manually when the first request comes in.

    • Constructor Detail

      • PushEndpoint

        public PushEndpoint()
    • Method Detail

      • onRequest

        public void onRequest​(org.atmosphere.cpr.AtmosphereResource resource)
                       throws IOException
        Specified by:
        onRequest in interface org.atmosphere.cpr.AtmosphereHandler
        Overrides:
        onRequest in class org.atmosphere.handler.AtmosphereHandlerAdapter
        Throws:
        IOException
      • onStateChange

        public void onStateChange​(org.atmosphere.cpr.AtmosphereResourceEvent event)
                           throws IOException
        Specified by:
        onStateChange in interface org.atmosphere.cpr.AtmosphereHandler
        Overrides:
        onStateChange in class org.atmosphere.handler.AtmosphereHandlerAdapter
        Throws:
        IOException