@Path(value="/jaxrs") public class JaxrsResource extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
Constructor and Description |
---|
JaxrsResource() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(AsyncResponse response) |
void |
get(AsyncResponse response) |
Response |
getCancelled() |
void |
resetCancelled() |
void |
timeout(AsyncResponse response) |
@GET @Produces(value="text/plain") public void get(@Suspended AsyncResponse response)
@GET @Path(value="timeout") @Produces(value="text/plain") public void timeout(@Suspended AsyncResponse response)
@GET @Path(value="cancel") @Produces(value="text/plain") public void cancel(@Suspended AsyncResponse response) throws Exception
Exception
Copyright © 2013. All Rights Reserved.