org.glassfish.jersey.examples.sse
Class DomainResource

java.lang.Object
  extended by org.glassfish.jersey.examples.sse.DomainResource

@Path(value="domain")
public class DomainResource
extends java.lang.Object

Author:
Pavel Bucek (pavel.bucek at oracle.com)

Constructor Summary
DomainResource()
           
 
Method Summary
 EventOutput getProgress(int id, boolean testSource)
           
 Response post(int testSources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainResource

public DomainResource()
Method Detail

post

@Path(value="start")
@POST
public Response post(@DefaultValue(value="0")@QueryParam(value="testSources")
                                    int testSources)

getProgress

@Path(value="process/{id}")
@Produces(value="text/event-stream")
@GET
public EventOutput getProgress(@PathParam(value="id")
                                                           int id,
                                                           @DefaultValue(value="false")@QueryParam(value="testSource")
                                                           boolean testSource)


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.