Skip to content

Instantly share code, notes, and snippets.

@jfarcand
Created April 29, 2014 16:36
Show Gist options
  • Save jfarcand/11405554 to your computer and use it in GitHub Desktop.
Save jfarcand/11405554 to your computer and use it in GitHub Desktop.
public Action inspect(final AtmosphereResource r) {
AtmosphereFramework f = r.getAtmosphereConfig().framework();
Map<String, AtmosphereFramework.AtmosphereHandlerWrapper> m = f.getAtmosphereHandlers();
m.get(r.getRequest().getAttribute(FrameworkConfig.MAPPED_PATH)).interceptors.add(f.newClassInstance(AtmosphereInterceptor.class, AtmosphereResourceLifecycleInterceptor.class));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment