AbstractDispatchServiceImpl
.@Deprecated public abstract class AbstractDispatchServiceImpl extends RemoteServiceServlet implements DispatchService
DispatchService
, for which the
client-side async service is DispatchServiceAsync
.
This class is closely related to AbstractDispatchImpl
, in theory the latter wouldn't be needed, but we use it
to workaround a GWT limitation described in DispatchAsync
.DispatchAsync
,
Dispatch
,
DispatchImpl
,
DispatchService
,
DispatchServiceAsync
,
DispatchServiceImpl
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Dispatch |
dispatch
Deprecated.
|
protected Logger |
logger
Deprecated.
|
protected RequestProvider |
requestProvider
Deprecated.
|
perThreadRequest, perThreadResponse
Modifier | Constructor and Description |
---|---|
protected |
AbstractDispatchServiceImpl(Logger logger,
Dispatch dispatch,
RequestProvider requestProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Result |
execute(String cookieSentByRPC,
Action<?> action)
Deprecated.
ActionException and
ServiceException will have their stacktraces (and stacktraces of their
causes) removed for security purposes. |
String |
getSecurityCookieName()
Deprecated.
|
void |
undo(String cookieSentByRPC,
Action<Result> action,
Result result)
Deprecated.
This method is called server-side whenever a previously executed action
needs to be undone.
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected final Dispatch dispatch
protected final Logger logger
protected RequestProvider requestProvider
protected AbstractDispatchServiceImpl(Logger logger, Dispatch dispatch, RequestProvider requestProvider)
public String getSecurityCookieName()
public Result execute(String cookieSentByRPC, Action<?> action) throws ActionException, ServiceException
ActionException
and
ServiceException
will have their stacktraces (and stacktraces of their
causes) removed for security purposes.execute
in interface DispatchService
cookieSentByRPC
- This is the content of the security cookie accessed
on the client (in javascript), its goal is to prevent XSRF
attacks. See SecurityCookieAccessor
for more details.action
- The Action
to execute.Result
of the action.ActionException
- Thrown if the action could not be executed for
application-specific reasons. User handlers should always throw
ActionException
or derived classes.ServiceException
- Thrown if the action could not be executed because
of a service error.com.gwtplatform.dispatch.shared.DispatchService} for further API docs
public void undo(String cookieSentByRPC, Action<Result> action, Result result) throws ActionException, ServiceException
DispatchService
undo
in interface DispatchService
cookieSentByRPC
- This is the content of the security cookie accessed
on the client (in javascript), its goal is to prevent XSRF
attacks. See SecurityCookieAccessor
for more details.action
- The Action
to execute.result
- The Result
of this action when it was executed.ActionException
- Thrown if the action could not be undone for
application-specific reasons. User handlers should always throw
ActionException
or derived classes.ServiceException
- Thrown if the action could not be undone because
of a service error.DispatchServiceAsync.undo(java.lang.String, com.gwtplatform.dispatch.shared.Action<?>, com.gwtplatform.dispatch.shared.Result, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void>)
Copyright © 2010-2014 ArcBees. All Rights Reserved.