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