[Jersey] Filter SSE broadcast messages

From: Paul Loberg <>
Date: Mon, 4 Aug 2014 12:15:41 +0200


I'm using the SseBroadcaster to broadcast SSE messages in my API, similar
to that of example 14.4.2 in the documentation. However, I would like to
have per connection filtering of the requests, i.e. add a parameter to
the listenToBroadcast() resource that would cause only a subset of the
events to be broadcast. As there would be a large number of possible
filters, creating one SseBroadcaster per filter could consume a lot of

Are there any alternatives, or would I need to implement this on top of
Broadcaster myself?


 -- Paul