@Singleton public class ServerConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerConfiguration.InstanceFactory
A special instance factory preventing recursive instantiation.
|
Constructor and Description |
---|
ServerConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultBaseUrl() |
String |
getDefaultExtension() |
static ServerConfiguration |
getInstance()
Deprecated.
since 4.5, use IoC
|
String |
getInstanceUuid() |
boolean |
isAdmin() |
boolean |
isUsageMetrics() |
void |
setAdmin(boolean admin) |
void |
setDefaultBaseUrl(String defaultBaseUrl) |
void |
setDefaultExtension(String defaultExtension) |
void |
setInstanceUuid(String instanceUuid) |
void |
setUsageMetrics(boolean usageMetrics) |
public String getDefaultExtension()
public void setDefaultExtension(String defaultExtension)
public String getDefaultBaseUrl()
public void setDefaultBaseUrl(String defaultBaseUrl)
public String getInstanceUuid()
public void setInstanceUuid(String instanceUuid)
public boolean isAdmin()
public void setAdmin(boolean admin)
public boolean isUsageMetrics()
public void setUsageMetrics(boolean usageMetrics)
@Deprecated public static ServerConfiguration getInstance()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.