A
- the RestAction
type.R
- the result type for this action.public class RestDispatchCall<A extends RestAction<R>,R> extends DispatchCall<A,R>
Constructor and Description |
---|
RestDispatchCall(ExceptionHandler exceptionHandler,
ClientActionHandlerRegistry clientActionHandlerRegistry,
SecurityCookieAccessor securityCookieAccessor,
RestRequestBuilderFactory requestBuilderFactory,
RestResponseDeserializer restResponseDeserializer,
A action,
AsyncCallback<R> callback) |
Modifier and Type | Method and Description |
---|---|
protected DispatchRequest |
doExecute()
Implementations must override this method to perform additional work when
DispatchCall.execute() is called. |
protected void |
onExecuteFailure(Throwable caught,
Response response)
Override this method to perform additional work when the action execution failed.
|
protected void |
onExecuteSuccess(R result,
Response response)
Override this method to perform additional work when the action execution succeeded.
|
execute, getAction, getCallback, getClientActionHandlerRegistry, getExceptionHandler, getSecurityCookie, getSecurityCookieAccessor, onExecuteFailure, onExecuteSuccess
public RestDispatchCall(ExceptionHandler exceptionHandler, ClientActionHandlerRegistry clientActionHandlerRegistry, SecurityCookieAccessor securityCookieAccessor, RestRequestBuilderFactory requestBuilderFactory, RestResponseDeserializer restResponseDeserializer, A action, AsyncCallback<R> callback)
protected DispatchRequest doExecute()
DispatchCall
DispatchCall.execute()
is called.doExecute
in class DispatchCall<A extends RestAction<R>,R>
DispatchRequest
object.protected void onExecuteSuccess(R result, Response response)
DispatchCall
onExecuteSuccess
in class DispatchCall<A extends RestAction<R>,R>
result
- the action result.response
- the action Response
.protected void onExecuteFailure(Throwable caught, Response response)
DispatchCall
onExecuteFailure
in class DispatchCall<A extends RestAction<R>,R>
caught
- the caught Throwable
.response
- the failure Response
.Copyright © 2010-2014 ArcBees. All Rights Reserved.