org.primefaces.push
Class PrimeAtmosphereHandler
java.lang.Object
org.atmosphere.handler.AbstractReflectorAtmosphereHandler
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
|
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, postStateChange |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimeAtmosphereHandler
public PrimeAtmosphereHandler(List<PushRule> rules)
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 © 2013. All Rights Reserved.