net.customware.gwt.dispatch.server.guice
Class GuiceSecureDispatchServlet

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 net.customware.gwt.dispatch.server.secure.AbstractSecureDispatchServlet
                      extended by net.customware.gwt.dispatch.server.guice.GuiceSecureDispatchServlet
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, SecureDispatchService

public class GuiceSecureDispatchServlet
extends AbstractSecureDispatchServlet
implements SecureDispatchService

A servlet implementation of the SecureDispatchService. This will call the provided SecureSessionValidator to confirm that the provided session ID is still valid before executing any actions. If not, an InvalidSessionException is thrown back to the client.

Author:
David Peterson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
GuiceSecureDispatchServlet(Dispatch dispatch, SecureSessionValidator sessionValidator)
           
 
Method Summary
protected  Dispatch getDispatch()
           
 SecureSessionValidator getSessionValidator()
           
 
Methods inherited from class net.customware.gwt.dispatch.server.secure.AbstractSecureDispatchServlet
execute
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
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
 
Methods inherited from interface net.customware.gwt.dispatch.client.secure.SecureDispatchService
execute
 

Constructor Detail

GuiceSecureDispatchServlet

@Inject
public GuiceSecureDispatchServlet(Dispatch dispatch,
                                         SecureSessionValidator sessionValidator)
Method Detail

getSessionValidator

public SecureSessionValidator getSessionValidator()
Specified by:
getSessionValidator in class AbstractSecureDispatchServlet

getDispatch

protected Dispatch getDispatch()
Specified by:
getDispatch in class AbstractSecureDispatchServlet


Copyright © 2011 customware.net. All Rights Reserved.