@Path(value="message/stream/jersey") public final class MessageStreamResourceJersey extends Object
Uses the Jersey-specific SSE API.
MessageStreamResourceJaxRs| Constructor and Description |
|---|
MessageStreamResourceJersey() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.jersey.media.sse.EventOutput |
getMessageStream()
Get the new SSE message stream channel.
|
void |
putMessage(Message message)
Put a new message to the stream.
|
@PUT @Consumes(value="application/json") public void putMessage(Message message)
message - message to be broadcast.@GET @Produces(value="text/event-stream") public org.glassfish.jersey.media.sse.EventOutput getMessageStream()
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.