public class FrameInterceptor.StompAtmosphereResource extends Object
Inner class that wraps the AtmosphereResource during inspection to write frame and check the nature of
the operations.
| Constructor and Description |
|---|
FrameInterceptor.StompAtmosphereResource(org.atmosphere.cpr.AtmosphereResource r,
Frame f)
Builds a new action.
|
| Modifier and Type | Method and Description |
|---|---|
org.atmosphere.cpr.AtmosphereResource |
getResource()
Gets the wrapped resource.
|
void |
write(Action a,
Map<String,String> headers)
Write a frame with its headers.
|
void |
write(Action a,
Map<String,String> headers,
String message)
Write a frame with its headers and a content.
|
public FrameInterceptor.StompAtmosphereResource(org.atmosphere.cpr.AtmosphereResource r,
Frame f)
Builds a new action.
r - the resourcef - the framepublic void write(Action a, Map<String,String> headers)
Write a frame with its headers.
a - the actionheaders - the headerspublic void write(Action a, Map<String,String> headers, String message)
Write a frame with its headers and a content.
a - the actionheaders - the headersmessage - the messagepublic org.atmosphere.cpr.AtmosphereResource getResource()
Gets the wrapped resource.
Copyright © 2015. All Rights Reserved.