@Path(value="server-sent-events") public class ServerSentEventsResource extends Object
| Constructor and Description |
|---|
ServerSentEventsResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String message) |
void |
close() |
EventOutput |
getMessageQueue() |
EventOutput |
startDomain(String id) |
@GET @Produces(value="text/event-stream") public EventOutput getMessageQueue()
@POST public void addMessage(String message) throws IOException
IOException@DELETE
public void close()
throws IOException
IOException@POST
@Path(value="domains/{id}")
@Produces(value="text/event-stream")
public EventOutput startDomain(@PathParam(value="id")
String id)
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.