本文整理了Java中com.google.gwt.user.server.rpc.RemoteServiceServlet.loadSerializationPolicy
方法的一些代码示例,展示了RemoteServiceServlet.loadSerializationPolicy
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteServiceServlet.loadSerializationPolicy
方法的具体详情如下:
包路径:com.google.gwt.user.server.rpc.RemoteServiceServlet
类名称:RemoteServiceServlet
方法名:loadSerializationPolicy
[英]Loads a serialization policy stored as a servlet resource in the same ServletContext as this servlet. Returns null if not found. (Used by HybridServiceServlet.)
[中]加载作为servlet资源存储在与此servlet相同的ServletContext中的序列化策略。如果未找到,则返回null。(由HybridServiceServlet使用。)
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Loads the {@link SerializationPolicy} for given module base URL and strong name.
* Returns the policy if successful or null if not found. Due to caching, this method
* will only be called once for each combination of moduleBaseURL and strongName.</p>
*
* <p>The default implementation loads serialization policies stored as servlet resources
* in the same ServletContext as this servlet.
*
* <p>Override this method to load the {@link SerializationPolicy} using an
* alternative approach.
*
* @param request the HTTP request being serviced
* @param moduleBaseURL as specified in the incoming payload
* @param strongName a strong name that uniquely identifies a serialization
* policy file
*/
protected SerializationPolicy doGetSerializationPolicy(
HttpServletRequest request, String moduleBaseURL, String strongName) {
return RemoteServiceServlet.loadSerializationPolicy(this, request, moduleBaseURL, strongName);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Loads the {@link SerializationPolicy} for given module base URL and strong name.
* Returns the policy if successful or null if not found. Due to caching, this method
* will only be called once for each combination of moduleBaseURL and strongName.</p>
*
* <p>The default implementation loads serialization policies stored as servlet resources
* in the same ServletContext as this servlet.
*
* <p>Override this method to load the {@link SerializationPolicy} using an
* alternative approach.
*
* @param request the HTTP request being serviced
* @param moduleBaseURL as specified in the incoming payload
* @param strongName a strong name that uniquely identifies a serialization
* policy file
*/
protected SerializationPolicy doGetSerializationPolicy(
HttpServletRequest request, String moduleBaseURL, String strongName) {
return RemoteServiceServlet.loadSerializationPolicy(this, request, moduleBaseURL, strongName);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Loads the {@link SerializationPolicy} for given module base URL and strong name.
* Returns the policy if successful or null if not found. Due to caching, this method
* will only be called once for each combination of moduleBaseURL and strongName.</p>
*
* <p>The default implementation loads serialization policies stored as servlet resources
* in the same ServletContext as this servlet.
*
* <p>Override this method to load the {@link SerializationPolicy} using an
* alternative approach.
*
* @param request the HTTP request being serviced
* @param moduleBaseURL as specified in the incoming payload
* @param strongName a strong name that uniquely identifies a serialization
* policy file
*/
protected SerializationPolicy doGetSerializationPolicy(
HttpServletRequest request, String moduleBaseURL, String strongName) {
return RemoteServiceServlet.loadSerializationPolicy(this, request, moduleBaseURL, strongName);
}
内容来源于网络,如有侵权,请联系作者删除!