GWTP Dispatch Server Base 0.7-redhat-1

com.gwtplatform.dispatch.server
Class AbstractDispatchServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by com.gwtplatform.dispatch.server.AbstractDispatchServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, DispatchService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class AbstractDispatchServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements DispatchService

This is the server-side implementation of the 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.

Author:
Christian Goudreau, David Peterson
See Also:
DispatchAsync, Dispatch, com.gwtplatform.dispatch.server.guice.DispatchImpl, DispatchService, DispatchServiceAsync, com.gwtplatform.dispatch.server.guice.DispatchServiceImpl, Serialized Form

Field Summary
protected  Dispatch dispatch
           
protected  Logger logger
           
protected  RequestProvider requestProvider
           
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
protected AbstractDispatchServiceImpl(Logger logger, Dispatch dispatch, RequestProvider requestProvider)
           
 
Method Summary
 Result execute(String cookieSentByRPC, Action<?> action)
           
 String getSecurityCookieName()
           
 void undo(String cookieSentByRPC, Action<Result> action, Result result)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatch

protected final Dispatch dispatch

logger

protected final Logger logger

requestProvider

protected RequestProvider requestProvider
Constructor Detail

AbstractDispatchServiceImpl

protected AbstractDispatchServiceImpl(Logger logger,
                                      Dispatch dispatch,
                                      RequestProvider requestProvider)
Method Detail

getSecurityCookieName

public String getSecurityCookieName()

execute

public Result execute(String cookieSentByRPC,
                      Action<?> action)
               throws ActionException,
                      ServiceException
Specified by:
execute in interface DispatchService
Throws:
ActionException
ServiceException

undo

public void undo(String cookieSentByRPC,
                 Action<Result> action,
                 Result result)
          throws ActionException,
                 ServiceException
Specified by:
undo in interface DispatchService
Throws:
ActionException
ServiceException

GWTP Dispatch Server Base 0.7-redhat-1

Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.