@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
Method s. |
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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private GenericRemoteInvocationRpcService genericService
getGenericService()
private javax.servlet.ServletContext servletContext
getServletContext()
public RemoteInvocationGenericServiceServlet()
public GenericRemoteInvocationRpcResponse callServices(GenericRemoteInvocationRpcRequest request)
RemoteInvocationService
Method
s.callServices
in interface RemoteInvocationGenericServiceGwt
callServices
in interface GenericRemoteInvocationRpcService
request
- is the GenericRemoteInvocationRpcRequest
.GenericRemoteInvocationRpcResponse
.public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.ServletConfig
getServletContext
in class javax.servlet.GenericServlet
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
public 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.