public class ConnectInterceptor extends org.atmosphere.interceptor.HeartbeatInterceptor implements StompInterceptor
Evaluates the connection frame.
Key features are the heartbeat negotiation and the user authentication when associated headers are specified in the frame.
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_VERSION
The default supported version.
|
static float |
HIGHEST_VERSION
The highest version we currently support.
|
static byte[] |
STOMP_HEARTBEAT_DATA
The padding data for STOMP heartbeat.
|
static String |
VERSIONS
Supported versions.
|
| Constructor and Description |
|---|
ConnectInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.atmosphere.cpr.AtmosphereConfig config) |
protected int |
extractHeartbeatInterval(org.atmosphere.cpr.AtmosphereResourceImpl resource) |
org.atmosphere.cpr.Action |
inspect(org.atmosphere.cpr.AtmosphereFramework framework,
Frame frame,
FrameInterceptor.StompAtmosphereResource r)
Inspects the
AtmosphereResource with its extracted Frame. |
clientHeartbeatFrequencyInSeconds, clientHeartbeatFrequencyInSeconds, clock, destroy, getPaddingBytes, heartbeatFrequencyInSeconds, heartbeatFrequencyInSeconds, inspect, paddingText, resumeOnHeartbeat, resumeOnHeartbeat, toStringpublic static final byte[] STOMP_HEARTBEAT_DATA
public static final float DEFAULT_VERSION
public static final float HIGHEST_VERSION
public static final String VERSIONS
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
configure in interface org.atmosphere.inject.AtmosphereConfigAwareconfigure in class org.atmosphere.interceptor.HeartbeatInterceptorprotected int extractHeartbeatInterval(org.atmosphere.cpr.AtmosphereResourceImpl resource)
extractHeartbeatInterval in class org.atmosphere.interceptor.HeartbeatInterceptorpublic org.atmosphere.cpr.Action inspect(org.atmosphere.cpr.AtmosphereFramework framework,
Frame frame,
FrameInterceptor.StompAtmosphereResource r)
Inspects the AtmosphereResource with its extracted Frame.
inspect in interface StompInterceptorframework - the frameworkframe - the framer - the resourceCopyright © 2015. All Rights Reserved.