@ScannerSide @ServerSide @ComputeEngineSide public abstract class Server extends java.lang.Object
Constructor and Description |
---|
Server() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getContextPath()
Context path of web server.
|
abstract java.lang.String |
getId()
UUID identifying the installation.
|
abstract java.lang.String |
getPermanentServerId()
Deprecated.
replaced by
getId() in 6.7. |
abstract java.lang.String |
getPublicRootUrl()
Return the public root url, without trailing slash, for instance : https://nemo.sonarqube.org.
|
abstract java.io.File |
getRootDir()
Deprecated.
in 6.0. Replaced by
ServerFileSystem.getHomeDir() |
abstract java.util.Date |
getStartedAt()
Date when server started.
|
abstract java.lang.String |
getURL()
Deprecated.
since 6.5, please use
getPublicRootUrl() instead |
abstract java.lang.String |
getVersion()
Non-null version of SonarQube at runtime
|
abstract boolean |
isDev()
Deprecated.
in 6.6
|
abstract boolean |
isSecured()
Deprecated.
since 5.6, use instead
HttpServletRequest.getHeader(String) and check that X-Forwarded-Proto header is set to "https". |
public abstract java.lang.String getId()
@Deprecated public abstract java.lang.String getPermanentServerId()
getId()
in 6.7.getId()
. In previous
versions it returned ab UUID generated on demand by system
administrators and may be null.public abstract java.lang.String getVersion()
public abstract java.util.Date getStartedAt()
@Deprecated public abstract java.io.File getRootDir()
ServerFileSystem.getHomeDir()
null
in scanner.public abstract java.lang.String getContextPath()
""
by default. When defined by
the property sonar.web.context
of conf/sonar.properties, then value starts but does
not end with slash '/'
, for instance "/sonarqube"
.public abstract java.lang.String getPublicRootUrl()
CoreProperties.SERVER_BASE_URL_DEFAULT_VALUE
@Deprecated public abstract boolean isDev()
sonar.web.dev
is true
.
Since 6.6, false
is always returned.@Deprecated public abstract boolean isSecured()
HttpServletRequest.getHeader(String)
and check that X-Forwarded-Proto header is set to "https".@Deprecated public abstract java.lang.String getURL()
getPublicRootUrl()
instead