@Path(value="resource") public class Resource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FALSE |
static String |
ISE |
static String |
NOE |
static String |
RESUMED |
static String |
TRUE |
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addResponse(AsyncResponse response,
String stageId) |
String |
cancel(String stage) |
String |
cancelDate(String stage,
String sRetryAfter) |
String |
cancelretry(String stage,
String sRetryAfter) |
void |
clear() |
protected static Response.ResponseBuilder |
createErrorResponseBuilder() |
String |
isCanceled(String stage) |
String |
isDone(String stage) |
String |
isSuspended(String stage) |
protected static boolean |
resume(AsyncResponse takenResponse,
Object response) |
String |
resume(String stage,
String response) |
String |
resumeWithCheckedException(String stage) |
String |
resumeWithRuntimeException(String stage) |
void |
setTimeOut(String stage,
String milis) |
void |
setTimeoutHandler(String stage,
int handlerValue) |
void |
suspend(AsyncResponse asyncResponse) |
protected static AsyncResponse |
takeAsyncResponse(int stageId) |
protected static AsyncResponse |
takeAsyncResponse(String stageId) |
public static final String RESUMED
public static final String ISE
public static final String NOE
public static final String FALSE
public static final String TRUE
@GET @Path(value="suspend") public void suspend(@Suspended AsyncResponse asyncResponse)
@POST @Path(value="cancelretry") public String cancelretry(@QueryParam(value="stage") String stage, String sRetryAfter)
@POST @Path(value="canceldate") public String cancelDate(@QueryParam(value="stage") String stage, String sRetryAfter)
@GET @Path(value="iscanceled") public String isCanceled(@QueryParam(value="stage") String stage)
@GET @Path(value="issuspended") public String isSuspended(@QueryParam(value="stage") String stage)
@POST @Path(value="resume") public String resume(@QueryParam(value="stage") String stage, String response)
@GET @Path(value="resumechecked") public String resumeWithCheckedException(@QueryParam(value="stage") String stage)
@GET @Path(value="resumeruntime") public String resumeWithRuntimeException(@QueryParam(value="stage") String stage)
@POST @Path(value="settimeout") public void setTimeOut(@QueryParam(value="stage") String stage, String milis)
@POST @Path(value="timeouthandler") public void setTimeoutHandler(@QueryParam(value="stage") String stage, int handlerValue)
protected static AsyncResponse takeAsyncResponse(String stageId)
protected static AsyncResponse takeAsyncResponse(int stageId)
protected static final void addResponse(AsyncResponse response, String stageId)
protected static boolean resume(AsyncResponse takenResponse, Object response)
protected static Response.ResponseBuilder createErrorResponseBuilder()
Copyright © 2014. All Rights Reserved.