org.codehaus.enunciate.modules.gwt
Class GWTEndpointImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
              extended by org.codehaus.enunciate.modules.gwt.GWTEndpointImpl
All Implemented Interfaces:
com.google.gwt.user.server.rpc.SerializationPolicyProvider, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class GWTEndpointImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet

Base implementation for a GWT endpoint.

Author:
Ryan Heaton
See Also:
Serialized Form

Field Summary
protected  java.lang.Object serviceBean
           
 
Constructor Summary
protected GWTEndpointImpl(java.lang.Object serviceBean)
           
 
Method Summary
protected  void doUnexpectedFailure(java.lang.Throwable throwable)
           
protected abstract  java.lang.Class getServiceInterface()
          The service interface.
 void init(javax.servlet.ServletConfig servletConfig)
           
protected  java.lang.Object invokeOperation(java.lang.String operationName, java.lang.Object... params)
           
 void setSecurityChecker(SecurityExceptionChecker securityChecker)
          Set the security exception checker.
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
doGetSerializationPolicy, doPost, getSerializationPolicy, getThreadLocalRequest, getThreadLocalResponse, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, readContent, shouldCompressResponse
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceBean

protected java.lang.Object serviceBean
Constructor Detail

GWTEndpointImpl

protected GWTEndpointImpl(java.lang.Object serviceBean)
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

invokeOperation

protected final java.lang.Object invokeOperation(java.lang.String operationName,
                                                 java.lang.Object... params)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

doUnexpectedFailure

protected void doUnexpectedFailure(java.lang.Throwable throwable)
Overrides:
doUnexpectedFailure in class com.google.gwt.user.server.rpc.RemoteServiceServlet

setSecurityChecker

public void setSecurityChecker(SecurityExceptionChecker securityChecker)
Set the security exception checker.

Parameters:
securityChecker - The security exception checker.

getServiceInterface

protected abstract java.lang.Class getServiceInterface()
The service interface.

Returns:
The service interface.