@Named(value="RemoteInvocationGenericServiceServlet") public class RemoteInvocationGenericServiceServlet extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements RemoteInvocationGenericServiceGwt, org.springframework.web.servlet.mvc.Controller, org.springframework.web.context.ServletContextAware
RemoteServiceServlet that implements the RemoteInvocationGenericServiceGwt
using spring-webmvc in order to allow context and dependency-injection (CDI). The actual
implementation for callServices(GenericRemoteInvocationRpcRequest) is delegated to an
injected implementation - by default
GenericRemoteInvocationRpcServiceImpl but can be changed by
overriding the spring XML configuration.| Modifier and Type | Field and Description |
|---|---|
private GenericRemoteInvocationRpcService |
genericService |
private static long |
serialVersionUID
UID for serialization.
|
private javax.servlet.ServletContext |
servletContext |
| Constructor and Description |
|---|
RemoteInvocationGenericServiceServlet()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GenericRemoteInvocationRpcResponse |
callServices(GenericRemoteInvocationRpcRequest request)
This method calls one or multiple
RemoteInvocationService
Methods. |
protected GenericRemoteInvocationRpcService |
getGenericService() |
javax.servlet.ServletContext |
getServletContext() |
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setGenericService(GenericRemoteInvocationRpcService genericService) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
private GenericRemoteInvocationRpcService genericService
getGenericService()private javax.servlet.ServletContext servletContext
getServletContext()public RemoteInvocationGenericServiceServlet()
public GenericRemoteInvocationRpcResponse callServices(GenericRemoteInvocationRpcRequest request)
RemoteInvocationService
Methods.callServices in interface RemoteInvocationGenericServiceGwtcallServices in interface GenericRemoteInvocationRpcServicerequest - is the GenericRemoteInvocationRpcRequest.GenericRemoteInvocationRpcResponse.public javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServletpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
handleRequest in interface org.springframework.web.servlet.mvc.Controller@Inject public void setGenericService(GenericRemoteInvocationRpcService genericService)
genericService - is the genericService to setprotected GenericRemoteInvocationRpcService getGenericService()
Copyright © 2001–2016 mmm-Team. All rights reserved.