public class ResourceManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceManager.Resource |
Modifier and Type | Field and Description |
---|---|
protected static ResourceManager.Resource |
CACHE_NEXT_TIME |
Constructor and Description |
---|
ResourceManager() |
Modifier and Type | Method and Description |
---|---|
static ResourceManager |
createRootResourceManager() |
String |
formatSummary() |
String |
formatSummaryPlain() |
protected String |
getContextProviderContext() |
org.dom4j.Document |
getDocument(String context,
String testdir,
String relResourcePath) |
static String |
getRestReplayVersion() |
String |
getTestDir() |
static Properties |
readPropertiesFromClasspath() |
ResourceManager.Resource |
readResource(String context,
String relResourcePath,
String fullPath)
Internally, this implements a write-on-second-access cache, because we end up reading many small
files once, and a few files many times.
|
void |
setTestContextProvider(ConfigFile provider) |
void |
setTestDir(String v) |
protected static final ResourceManager.Resource CACHE_NEXT_TIME
public String getTestDir()
public void setTestDir(String v)
public static ResourceManager createRootResourceManager()
public void setTestContextProvider(ConfigFile provider)
protected String getContextProviderContext()
public static String getRestReplayVersion()
public org.dom4j.Document getDocument(String context, String testdir, String relResourcePath) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public ResourceManager.Resource readResource(String context, String relResourcePath, String fullPath) throws IOException
context
- relResourcePath
- fullPath
- IOException
public static Properties readPropertiesFromClasspath()
public String formatSummary()
public String formatSummaryPlain()
Copyright © 2016. All rights reserved.