com.google.gwt.user.server.rpc.RemoteServiceServlet.loadSerializationPolicy()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(61)

本文整理了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

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);
}

相关文章

微信公众号

最新文章

更多