Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Injecting Atmosphere's Components in Jersey

nepa edited this page · 2 revisions

FAQ

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally

Sometimes it is needed to inject Atmosphere components in a Jersey resource. The following components can be injected by using the @Context, @PathParam @QueryParam, @MatrixParam, @HeaderParam, @CookieParam, @FormParam etc. annotation

  • AtmosphereResource
  • Broadcaster
  • BroadcasterFactory

For example @Context

  @Context AtmosphereResource resource

@PathParam

  public String inject(@PathParam("test") Broadcaster broadcaster) {
     ...
  }
Something went wrong with that request. Please try again.