public class PrimeAtmosphereHandler
extends org.atmosphere.handler.AbstractReflectorAtmosphereHandler
AtmosphereHandler
who delegate HTTP METHOD GET to PushRule
. See the
DefaultPushRule
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 itConstructor and Description |
---|
PrimeAtmosphereHandler(List<PushRule> rules) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRules(org.atmosphere.cpr.AtmosphereResource resource) |
void |
onRequest(org.atmosphere.cpr.AtmosphereResource resource) |
StringBuilder |
read(org.atmosphere.cpr.AtmosphereResource r) |
public void onRequest(org.atmosphere.cpr.AtmosphereResource resource) throws IOException
IOException
protected void applyRules(org.atmosphere.cpr.AtmosphereResource resource)
public StringBuilder read(org.atmosphere.cpr.AtmosphereResource r)
Copyright © 2015. All rights reserved.