Skip to content

Commit

Permalink
Rebuild url
Browse files Browse the repository at this point in the history
  • Loading branch information
finefuture committed Dec 11, 2023
1 parent e821f3c commit 8b32448
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,10 @@ protected URL getRegistryUrl(URL url) {
* @return url to registry.
*/
private URL customizeURL(final URL providerUrl, final URL registryUrl) {
providerUrl.putAttribute(SIMPLIFIED_KEY, registryUrl.getParameter(SIMPLIFIED_KEY, false));
providerUrl.putAttribute(EXTRA_KEYS_KEY, registryUrl.getParameter(EXTRA_KEYS_KEY, ""));
URL newProviderURL = providerUrl.putAttribute(SIMPLIFIED_KEY, registryUrl.getParameter(SIMPLIFIED_KEY, false));
newProviderURL = newProviderURL.putAttribute(EXTRA_KEYS_KEY, registryUrl.getParameter(EXTRA_KEYS_KEY, ""));
ApplicationModel applicationModel = providerUrl.getOrDefaultApplicationModel();
ExtensionLoader<ServiceURLCustomizer> loader = applicationModel.getExtensionLoader(ServiceURLCustomizer.class);
URL newProviderURL = providerUrl;
for (ServiceURLCustomizer customizer : loader.getSupportedExtensionInstances()) {
newProviderURL = customizer.customize(newProviderURL, applicationModel);
}
Expand Down

0 comments on commit 8b32448

Please sign in to comment.