public class GWTController
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements org.springframework.web.servlet.mvc.Controller, org.springframework.web.context.ServletContextAware, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
GWTController() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gwt.user.server.rpc.SerializationPolicy |
doGetSerializationPolicy(javax.servlet.http.HttpServletRequest request,
String moduleBaseURL,
String strongName) |
javax.servlet.ServletContext |
getServletContext() |
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
log(String msg) |
void |
log(String message,
Throwable t) |
String |
processCall(String payload) |
void |
setAllowPostMethodOnly(boolean allowPostMethodOnly) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setRemoteServiceName(String remoteServiceName)
Injects the target GWT service to be called.
|
void |
setRequireAuthenticatedUser(boolean requireAuthenticatedUser) |
void |
setRequiredPermission(String requiredPermission)
Sets a permission, required to access the GWT services.
|
void |
setRequiredPermissionCheckCache(boolean requiredPermissionCheckCache)
Set it to
true if we allow to cache the successful required permission check in a session. |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setSessionExpiryTime(int sessionExpiryTime) |
checkPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void setSessionExpiryTime(int sessionExpiryTime)
public javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfiggetServletContext in class javax.servlet.GenericServletpublic org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequest in interface org.springframework.web.servlet.mvc.ControllerExceptionpublic String processCall(String payload) throws com.google.gwt.user.client.rpc.SerializationException
processCall in class com.google.gwt.user.server.rpc.RemoteServiceServletcom.google.gwt.user.client.rpc.SerializationExceptionprotected com.google.gwt.user.server.rpc.SerializationPolicy doGetSerializationPolicy(javax.servlet.http.HttpServletRequest request,
String moduleBaseURL,
String strongName)
doGetSerializationPolicy in class com.google.gwt.user.server.rpc.RemoteServiceServletpublic void setRemoteServiceName(String remoteServiceName)
remoteServiceName - the Spring bean ID for the target GWT service to be calledpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void log(String message, Throwable t)
log in class javax.servlet.GenericServletpublic void log(String msg)
log in class javax.servlet.GenericServletpublic void setAllowPostMethodOnly(boolean allowPostMethodOnly)
public void setRequireAuthenticatedUser(boolean requireAuthenticatedUser)
public void setRequiredPermission(String requiredPermission)
null or an empty value means no permission check is done.requiredPermission - a permission, required to access the GWT servicespublic void setRequiredPermissionCheckCache(boolean requiredPermissionCheckCache)
true if we allow to cache the successful required permission check in a session.requiredPermissionCheckCache - true if we allow to cache the successful required permission check in a session; false otherwiseCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.