aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-01-19 11:44:16 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-01-25 15:26:49 +0100
commit2bcd1b062b5f26b9e325b3bd2b744d5c56704352 (patch)
tree83850c8ad43d2b09fb9b5f1ac1806bb7a7f94ad1 /sonar-batch/src
parent3a9d42f4075e23448349b2f96c332fe6eae7a55b (diff)
downloadsonarqube-2bcd1b062b5f26b9e325b3bd2b744d5c56704352.tar.gz
sonarqube-2bcd1b062b5f26b9e325b3bd2b744d5c56704352.zip
SONAR-6226 Create IdentityProvider API
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/platform/DefaultServer.java32
1 files changed, 22 insertions, 10 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/platform/DefaultServer.java b/sonar-batch/src/main/java/org/sonar/batch/platform/DefaultServer.java
index 510f281ac0e..b747438a9f5 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/platform/DefaultServer.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/platform/DefaultServer.java
@@ -19,21 +19,18 @@
*/
package org.sonar.batch.platform;
+import java.io.File;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import javax.annotation.CheckForNull;
import org.apache.commons.lang.StringUtils;
-
-import org.sonar.batch.bootstrap.GlobalProperties;
import org.slf4j.LoggerFactory;
-import org.sonar.api.batch.BatchSide;
import org.sonar.api.CoreProperties;
+import org.sonar.api.batch.BatchSide;
import org.sonar.api.config.Settings;
import org.sonar.api.platform.Server;
-
-import javax.annotation.CheckForNull;
-
-import java.io.File;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
+import org.sonar.batch.bootstrap.GlobalProperties;
@BatchSide
public class DefaultServer extends Server {
@@ -87,6 +84,21 @@ public class DefaultServer extends Server {
}
@Override
+ public String getPublicRootUrl() {
+ return null;
+ }
+
+ @Override
+ public boolean isDev() {
+ return false;
+ }
+
+ @Override
+ public boolean isSecured() {
+ return false;
+ }
+
+ @Override
public String getURL() {
return StringUtils.removeEnd(StringUtils.defaultIfBlank(props.property("sonar.host.url"), "http://localhost:9000"), "/");
}