public String getPreloaderBaseURL() { return GWT.getHostPageBaseURL() + "assets/"; }
public String getPreloaderBaseURL() { return GWT.getHostPageBaseURL() + "assets/"; }
public String getPreloaderBaseURL() { return GWT.getHostPageBaseURL() + "assets/"; }
@Override public String getHostUrl() { return GWT.getHostPageBaseURL(); }
protected String getPolyfillUrl() { return GWT.getHostPageBaseURL() + "x-tag-components.min.js"; }
private static String getBaseUrl() { String url = GWT.getHostPageBaseURL(); url = url.substring( 0, url.length() - 1 ); // strip last / url = url.substring( 0, url.lastIndexOf( '/' ) ); // strip module name return url; } }
@Deprecated protected boolean redirectHack(String text) { if (text != null && text.contains("<!-- ##Login page hack## -->")) { String redirectUrl = GWT.getHostPageBaseURL() + "Login.html?login-reauth"; Window.Location.replace(redirectUrl); return true; } return false; }
@Inject public SldManagerImpl(EventBus eventBus) { this.eventBus = eventBus; ServiceDefTarget endpoint = (ServiceDefTarget) service; endpoint.setServiceEntryPoint(GWT.getHostPageBaseURL() + "d/sldTemplates"); }
@Provides @RestApplicationPath String getApplicationPath() { String baseUrl = GWT.getHostPageBaseURL(); if (baseUrl.endsWith("/")) { baseUrl = baseUrl.substring(0, baseUrl.length() - 1); } return baseUrl; } }
private static URL getURLToUse() { if (urlHolder.url == null) { try { urlHolder.url = new URL(GWT.getHostPageBaseURL() + computePath() + Location.getHash()); } catch (MalformedURLException e) { throw new GwtTestConfigurationException( "GWT.getHostPageBaseURL() has failed to be parsed in a " + URL.class.getName() + " instance", e); } } return urlHolder.url; }
private static URL getURLToUse() { if (urlHolder.url == null) { try { urlHolder.url = new URL(GWT.getHostPageBaseURL() + computePath() + Location.getHash()); } catch (MalformedURLException e) { throw new GwtTestConfigurationException( "GWT.getHostPageBaseURL() has failed to be parsed in a " + URL.class.getName() + " instance", e); } } return urlHolder.url; }
public void onClick(ClickEvent event) { String helpUrl = GWT.getHostPageBaseURL() + i18n.helpPath(); Window.open(helpUrl, "", ""); } });
public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) { String helpUrl = GWT.getHostPageBaseURL() + i18n.helpPath(); Window.open(helpUrl, "", ""); } });
public void onClick(ClickEvent event) { String helpUrl = GWT.getHostPageBaseURL(); highlightSelectedButton(helpButton); if (PropertiesManager.language.equals("en")) { Window.open(helpUrl + "help_ses_en.html", "help", ""); } else { Window.open(helpUrl + "help_ses_de.html", "help", ""); } } });
@Override public void onSuccess(String result) { // On success get documentID back from GWT Servlet// // We need to get the base url and strip the gwt module name . String baseUrl = GWT.getHostPageBaseURL(); baseUrl = baseUrl.replaceFirst(GWT.getModuleName() + "/", ""); KSBlockingProgressIndicator.removeTask(loadDataTask); Window.open(baseUrl + "exportDownloadHTTPServlet?exportId="+result + "&format=" + format, "", ""); }
@Override public void execute() { form.setAction(GWT.getHostPageBaseURL().replaceAll("/" + GWT.getModuleName(), "") + pluginConfigService.getMediaServletURI() + pluginName); form.submit(); } },
@Override public void execute() { form.setAction(GWT.getHostPageBaseURL().replaceAll("/" + GWT.getModuleName(), "") + pluginConfigService.getMediaServletURI() + pluginName); form.submit(); } },
private DefaultCommandController() { this.moduleBaseURL = GWT.getHostPageBaseURL(); this.remoteServiceURL = this.moduleBaseURL + "commandService"; ErrorManager.get().registerErrorHandlers(new ClientErrorHandler(), new ServerErrorHandler(), new DefaultCommandExceptionErrorHandler()); }
public void onSuccess(RepresentationResponse result) { removeRequest(); try { FileResponse resp = (FileResponse) result; Window.open(GWT.getHostPageBaseURL() + resp.getURL(), "_blank", "width=500,height=500"); EventBus.getMainEventBus().fireEvent(new ExportFinishedEvent()); } catch (Exception e) { ExceptionHandler.handleUnexpectedException(e); } }
@Override public void publish(LogRecord record) { if (isLoggable(record)) { if (!ServiceRootMatcher.hasServiceRoot(PATH)) ((RestServiceProxy) service).setResource(new Resource(GWT.getHostPageBaseURL())); else ((RestServiceProxy) service).setResource(new Resource(ServiceRootMatcher.matchedServiceRoot(PATH))); service.send(asSerializableLogRecord(record), new RemoteLoggingCallBack()); } }