org.gwtwidgets.server.spring
Interface RPCServiceExporter

All Superinterfaces:
org.springframework.web.servlet.mvc.Controller, org.springframework.beans.factory.InitializingBean, org.springframework.web.context.ServletConfigAware, org.springframework.web.context.ServletContextAware
All Known Implementing Classes:
GWTRPCServiceExporter, TracingExporter

public interface RPCServiceExporter
extends org.springframework.web.servlet.mvc.Controller, org.springframework.beans.factory.InitializingBean, org.springframework.web.context.ServletContextAware, org.springframework.web.context.ServletConfigAware

Interface for RPC exporters.

Author:
George Georgovassilis, g.georgovassilis[at]gmail.com

Method Summary
 void setResponseCachingDisabled(boolean caching)
          Set state of response caching
 void setService(java.lang.Object service)
          Set the service object to which RPCs should be delegated.
 void setServiceInterfaces(java.lang.Class<com.google.gwt.user.client.rpc.RemoteService>[] interfaces)
          Declare Interfaces that will be bound to RPC
 void setShouldCheckPermutationStrongName(boolean shouldCheckPermutationStrongName)
          Specify whether RemoteServiceServlet.checkPermutationStrongName() should be invoked for the current request.
 void setThrowUndeclaredExceptionToServletContainer(boolean throwUndeclaredExceptionToServletContainer)
          When enabled will throw exceptions which originate from the service and have not been declared in the RPC interface back to the servlet container.
 
Methods inherited from interface org.springframework.web.servlet.mvc.Controller
handleRequest
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 
Methods inherited from interface org.springframework.web.context.ServletContextAware
setServletContext
 
Methods inherited from interface org.springframework.web.context.ServletConfigAware
setServletConfig
 

Method Detail

setService

void setService(java.lang.Object service)
Set the service object to which RPCs should be delegated.

Parameters:
service -

setServiceInterfaces

void setServiceInterfaces(java.lang.Class<com.google.gwt.user.client.rpc.RemoteService>[] interfaces)
Declare Interfaces that will be bound to RPC

Parameters:
interfaces - Array of Interfaces

setResponseCachingDisabled

void setResponseCachingDisabled(boolean caching)
Set state of response caching

Parameters:
caching -

setThrowUndeclaredExceptionToServletContainer

void setThrowUndeclaredExceptionToServletContainer(boolean throwUndeclaredExceptionToServletContainer)
When enabled will throw exceptions which originate from the service and have not been declared in the RPC interface back to the servlet container.

Parameters:
throwUndeclaredExceptionToServletContainer -

setShouldCheckPermutationStrongName

void setShouldCheckPermutationStrongName(boolean shouldCheckPermutationStrongName)
Specify whether RemoteServiceServlet.checkPermutationStrongName() should be invoked for the current request. Disabled by default for backwards compatibility with older SL versions.

Parameters:
shouldCheckPermutationStrongName -


Copyright © 2011. All Rights Reserved.