public class ConfigLoader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LIMIT_PER_CLASS_MAP |
static int |
DEFAULT_LIMIT_PER_PROPERTY_BRIDGE |
Constructor and Description |
---|
ConfigLoader(String configURL) |
Modifier and Type | Method and Description |
---|---|
void |
addDocumentMetadata(Model document,
Resource documentResource) |
String |
baseURI() |
protected Resource |
findDatabaseResource() |
protected Resource |
findServerResource() |
boolean |
getAutoReloadMapping() |
protected Model |
getDatasetMetadataTemplate(D2RServer server,
javax.servlet.ServletContext context) |
int |
getLimitPerClassMap() |
int |
getLimitPerPropertyBridge() |
String |
getLocalMappingFilename() |
double |
getPageTimeout() |
protected Model |
getResourceMetadataTemplate(D2RServer server,
javax.servlet.ServletContext context) |
double |
getSPARQLTimeout() |
boolean |
getVocabularyIncludeInstances() |
boolean |
isLocalMappingFile() |
void |
load() |
int |
port() |
protected boolean |
serveMetadata() |
String |
serverName() |
static String |
toAbsoluteURI(String fileName)
Accepts an absolute URI, relative file: URI, or plain file name
(including names with spaces, Windows backslashes etc) and returns an
equivalent full absolute URI.
|
public static final int DEFAULT_LIMIT_PER_CLASS_MAP
public static final int DEFAULT_LIMIT_PER_PROPERTY_BRIDGE
public ConfigLoader(String configURL)
configURL
- Config file URL, or null
for an empty configpublic static String toAbsoluteURI(String fileName)
public void load()
public boolean isLocalMappingFile()
public String getLocalMappingFilename()
public int port()
public String baseURI()
public String serverName()
public boolean getVocabularyIncludeInstances()
public int getLimitPerClassMap()
public int getLimitPerPropertyBridge()
public boolean getAutoReloadMapping()
public double getPageTimeout()
public double getSPARQLTimeout()
protected Resource findServerResource()
protected Resource findDatabaseResource()
protected Model getResourceMetadataTemplate(D2RServer server, javax.servlet.ServletContext context)
protected Model getDatasetMetadataTemplate(D2RServer server, javax.servlet.ServletContext context)
protected boolean serveMetadata()