Class DomainResource
java.lang.Object
org.glassfish.jersey.examples.sse.jaxrs.DomainResource
- Author:
- Pavel Bucek, Adam Lindenthal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetProgress(int id, boolean testSource, SseEventSink eventSink)
-
Constructor Details
-
DomainResource
public DomainResource()
-
-
Method Details
-
post
@Path("start") @POST public Response post(@DefaultValue("0") @QueryParam("testSources") int testSources, @Context Sse sse) -
getProgress
@Path("process/{id}") @Produces("text/event-stream") @GET public void getProgress(@PathParam("id") int id, @DefaultValue("false") @QueryParam("testSource") boolean testSource, @Context SseEventSink eventSink)
-