@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 |
injectionFailure(AsyncResponse response) |
void |
injectionFailure(AsyncResponse response,
int id) |
void |
resetCancelled() |
void |
resumeObject(AsyncResponse response) |
void |
resumeObjectThread(AsyncResponse response) |
void |
timeout(AsyncResponse response) |
@GET @Path(value="resume/object") @Produces(value="application/xml") public void resumeObject(@Suspended AsyncResponse response)
@GET @Path(value="resume/object/thread") @Produces(value="application/xml") public void resumeObjectThread(@Suspended AsyncResponse response) throws Exception
Exception
@GET @Path(value="injection-failure/{param}") public void injectionFailure(@Suspended AsyncResponse response, @PathParam(value="param") int id)
@GET @Path(value="method-failure") public void injectionFailure(@Suspended AsyncResponse response)
@GET @Produces(value="text/plain") public void get(@Suspended AsyncResponse response) throws Exception
Exception
@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 © 2015. All Rights Reserved.