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

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

Best Java code snippets using com.haulmont.cuba.core.global.GlobalConfig.getWebHostName (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

if (config.getLogIncorrectWebAppPropertiesEnabled()) {
  StringBuilder sb = new StringBuilder();
  if (!request.getServerName().equals(config.getWebHostName())) {
    sb.append("***** cuba.webHostName=").append(config.getWebHostName())
        .append(", actual=").append(request.getServerName()).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.globalGlobalConfiggetWebHostName

Popular methods of GlobalConfig

  • getAvailableLocales
    Supported locales. List of locales is shown on user login.
  • getConfDir
  • getWebPort
  • 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

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • From CI to AI: The AI layer in your organization
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