org.primefaces.push
Class PrimeAtmosphereHandler

java.lang.Object
  extended by org.atmosphere.handler.AbstractReflectorAtmosphereHandler
      extended by org.primefaces.push.PrimeAtmosphereHandler
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereHandler

public class PrimeAtmosphereHandler
extends org.atmosphere.handler.AbstractReflectorAtmosphereHandler

Simple AtmosphereHandler who delegate HTTP METHOD GET to PushRule. See the DefaultPushRule
If your application needs to support POST for whatever reason, extends the onRequest(org.atmosphere.cpr.AtmosphereResource) method and add your logic there. This AtmosphereHandler doesn't invoke the AtmosphereResource.suspend(). The AtmosphereResourceLifecycleInterceptor is taking care of it


Constructor Summary
PrimeAtmosphereHandler(List<PushRule> rules)
           
 
Method Summary
protected  void applyRules(org.atmosphere.cpr.AtmosphereResource resource)
           
 void destroy()
           
 void onRequest(org.atmosphere.cpr.AtmosphereResource resource)
           
 
Methods inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler
onStateChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimeAtmosphereHandler

public PrimeAtmosphereHandler(List<PushRule> rules)
Method Detail

onRequest

public void onRequest(org.atmosphere.cpr.AtmosphereResource resource)
               throws IOException
Throws:
IOException

applyRules

protected void applyRules(org.atmosphere.cpr.AtmosphereResource resource)

destroy

public void destroy()


Copyright © 2012. All Rights Reserved.