public class SendInterceptor extends org.atmosphere.cpr.AtmosphereInterceptorAdapter implements StompInterceptor
Invokes the method annotated with StompService inside any
ManagedService that defines a destination that matched the destination
String inside the specified Strings.
The result of the method invocation is dispatched by the Broadcaster identified with
the path specified in the given Strings. If no annotated method matches the requested send,
then the body is dispatched. Original body or result are sent in a Action.MESSAGE
frame. Finally, if the method invocation throws an exception, then an Action.ERROR
is sent only to the specified AtmosphereResource that sent the frame.
Note that Broadcaster must not do anything if a transaction has been started by the
AtmosphereResource and if this transaction is referenced in frame's Strings.
| Constructor and Description |
|---|
SendInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
org.atmosphere.cpr.Action |
inspect(org.atmosphere.cpr.AtmosphereFramework framework,
Frame frame,
FrameInterceptor.StompAtmosphereResource r)
Inspects the
AtmosphereResource with its extracted Frame. |
configure, destroy, inspect, postInspect, priority, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic org.atmosphere.cpr.Action inspect(org.atmosphere.cpr.AtmosphereFramework framework,
Frame frame,
FrameInterceptor.StompAtmosphereResource r)
throws IOException
Inspects the AtmosphereResource with its extracted Frame.
inspect in interface StompInterceptorframework - the frameworkframe - the framer - the resourceIOException - if inspection failsCopyright © 2015. All Rights Reserved.