public class StompSendActionAtmosphereHandler
extends org.atmosphere.handler.AbstractReflectorAtmosphereHandler
This handler wraps the method to be invoked when the send action is performed
with a STOMP frame. The frame indicates the particular destination
which is mapped to the appropriate annotated method.
| Constructor and Description |
|---|
StompSendActionAtmosphereHandler(Object toProxy,
Method method,
org.atmosphere.config.managed.Encoder<Object,String> encoder,
org.atmosphere.config.managed.Decoder<String,?> decoder,
org.atmosphere.cpr.Broadcaster broadcaster)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onRequest(org.atmosphere.cpr.AtmosphereResource atmosphereResource) |
public StompSendActionAtmosphereHandler(Object toProxy, Method method, org.atmosphere.config.managed.Encoder<Object,String> encoder, org.atmosphere.config.managed.Decoder<String,?> decoder, org.atmosphere.cpr.Broadcaster broadcaster)
Creates a new instance.
toProxy - the object to proxymethod - the method to invoke on proxy objectencoder - encodes into expected parameter typedecoder - converts returned type into String wrapped in text framebroadcaster - the broadcaster associated to the destination declared in the annotated methodpublic void onRequest(org.atmosphere.cpr.AtmosphereResource atmosphereResource)
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.