Tabnine Logo
GlobalConfig.getWebPort
Code IndexAdd Tabnine to your IDE (free)

How to use
getWebPort
method
in
com.haulmont.cuba.core.global.GlobalConfig

Best Java code snippets using com.haulmont.cuba.core.global.GlobalConfig.getWebPort (Showing top 12 results out of 315)

origin: com.haulmont.cuba/cuba-rest-api

protected String getHost() {
  return globalConfig.getWebHostName() + ":" + globalConfig.getWebPort();
}
origin: com.haulmont.cuba/cuba-rest-api

protected String makeClientInfo(String userAgent) {
  //noinspection UnnecessaryLocalVariable
  String serverInfo = String.format("REST API (%s:%s/%s) %s",
      globalConfig.getWebHostName(),
      globalConfig.getWebPort(),
      globalConfig.getWebContextName(),
      StringUtils.trimToEmpty(userAgent));
  return serverInfo;
}
origin: com.haulmont.cuba/cuba-rest-api

protected String makeClientInfo(String userAgent) {
  //noinspection UnnecessaryLocalVariable
  String serverInfo = String.format("REST API (%s:%s/%s) %s",
      globalConfig.getWebHostName(),
      globalConfig.getWebPort(),
      globalConfig.getWebContextName(),
      StringUtils.trimToEmpty(userAgent));
  return serverInfo;
}
origin: com.haulmont.cuba/cuba-portal

protected String getPortalNetworkLocation() {
  return globalConfig.getWebHostName() + ":" +
      globalConfig.getWebPort() + "/" +
      globalConfig.getWebContextName();
}
origin: com.haulmont.cuba/cuba-rest-api

  protected String makeClientInfo(String userAgent) {
    GlobalConfig globalConfig = configuration.getConfig(GlobalConfig.class);

    //noinspection UnnecessaryLocalVariable
    String serverInfo = String.format("REST API (%s:%s/%s) %s",
        globalConfig.getWebHostName(),
        globalConfig.getWebPort(),
        globalConfig.getWebContextName(),
        StringUtils.trimToEmpty(userAgent));

    return serverInfo;
  }
}
origin: com.haulmont.cuba/cuba-core

      .append(", actual=").append(request.getServerName()).append("\n");
if (request.getServerPort() != Integer.parseInt(config.getWebPort())) {
  sb.append("***** cuba.webPort=").append(config.getWebPort())
      .append(", actual=").append(request.getServerPort()).append("\n");
origin: com.haulmont.reports/reports-core

protected String resolveServerPrefix(String uri) {
  Configuration configStorage = AppBeans.get(Configuration.NAME);
  GlobalConfig globalConfig = configStorage.getConfig(GlobalConfig.class);
  String coreUrl = String.format("http://%s:%s/%s/",
      globalConfig.getWebHostName(), globalConfig.getWebPort(), globalConfig.getWebContextName());
  String webUrl = globalConfig.getWebAppUrl() + "/";
  return uri.replace(WEB_APP_PREFIX, webUrl).replace(CORE_APP_PREFIX, coreUrl);
}
origin: com.haulmont.cuba/cuba-global

  @Override
  public String getNodeName() {
    Configuration configuration = AppBeans.get(Configuration.NAME);
    GlobalConfig globalConfig = configuration.getConfig(GlobalConfig.class);
    return globalConfig.getWebHostName() + ":" + globalConfig.getWebPort();
  }
}
origin: com.haulmont.cuba/cuba-core

@Override
public String getServerId() {
  if (serverId == null) {
    GlobalConfig globalConfig = configuration.getConfig(GlobalConfig.class);
    serverId = globalConfig.getWebHostName() + ":" + globalConfig.getWebPort() + "/" + globalConfig.getWebContextName();
  }
  return serverId;
}
origin: com.haulmont.cuba/cuba-web

protected String makeClientInfo() {
  // timezone info is passed only on VaadinSession creation
  WebBrowser webBrowser = getWebBrowserDetails();
  //noinspection UnnecessaryLocalVariable
  String serverInfo = String.format("Web (%s:%s/%s) %s",
      globalConfig.getWebHostName(),
      globalConfig.getWebPort(),
      globalConfig.getWebContextName(),
      webBrowser.getBrowserApplication());
  return serverInfo;
}
origin: com.haulmont.cuba/cuba-rest-api

protected void setSessionInfo(HttpServletRequest request, UserSession userSession) {
  userSessionService.setSessionAddress(userSession.getId(), request.getRemoteAddr());
  String serverInfo = "REST API (" +
      globalConfig.getWebHostName() + ":" +
      globalConfig.getWebPort() + "/" +
      globalConfig.getWebContextName() + ") ";
  userSessionService.setSessionClientInfo(userSession.getId(), serverInfo + request.getHeader("User-Agent"));
}
origin: com.haulmont.cuba/cuba-portal

protected Map<String, Object> getSessionParams(String ipAddress, String clientInfo) {
  GlobalConfig globalConfig = configuration.getConfig(GlobalConfig.class);
  String serverInfo = "Portal (" +
      globalConfig.getWebHostName() + ":" +
      globalConfig.getWebPort() + "/" +
      globalConfig.getWebContextName() + ") ";
  return ParamsMap.of(
      ClientType.class.getName(), AppContext.getProperty("cuba.clientType"),
      SessionParams.IP_ADDRESS.getId(), ipAddress,
      SessionParams.CLIENT_INFO.getId(), serverInfo + clientInfo
  );
}
com.haulmont.cuba.core.globalGlobalConfiggetWebPort

Popular methods of GlobalConfig

  • getAvailableLocales
    Supported locales. List of locales is shown on user login.
  • getConfDir
  • getWebHostName
  • getWebAppUrl
  • getWebContextName
  • getLocaleSelectVisible
    Show locale select in LoginWindow.
  • getTempDir
  • getAllowQueryFromSelected
  • getDataDir
  • getHealthCheckResponse
  • getNumberIdCacheSize
  • getRestRequiresSecurityToken
  • getNumberIdCacheSize,
  • getRestRequiresSecurityToken,
  • getTestMode,
  • getUserSessionLogEnabled,
  • getAnonymousSessionId,
  • getAppFolderEditWindowClassName,
  • getCubaClasspathDirectories,
  • getDeepCopyNonPersistentReferences,
  • getDisableEscapingLikeForDataStores

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JPanel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now