|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.deli.Workspace
This class provides a workspace for a specific CC/PP implementation. The constructor configures the workspace using a properties file. This allows it to support a specific protocol and vocabulary such as UAProf.
Field Summary | |
private static Workspace |
_instance
|
protected boolean |
cacheReferenceProfiles
|
protected java.lang.String |
componentProperty
|
protected java.lang.String |
datatypeConfigFile
|
protected java.util.HashMap |
datatypeExpressions
|
protected boolean |
datatypeValidationOn
|
protected boolean |
debug
|
protected boolean |
debugRequestHeaders
|
static java.lang.String |
deliVersionNumber
|
protected boolean |
enforceUAProfTwoDatatypes
|
private static long |
HOURINMILLISECONDS
|
protected LocalProfiles |
localProfiles
|
protected java.lang.String |
localProfilesPath
|
private static org.apache.log4j.Logger |
logger
|
protected long |
maxCachedProfileLifetime
|
protected int |
maxCacheSize
|
protected boolean |
normaliseWhitespaceInProfileDiff
|
protected static java.lang.String |
path
|
protected boolean |
preferLocalOverRemoteProfiles
|
protected boolean |
printDefaults
|
protected boolean |
printProfileBeforeMerge
|
protected boolean |
processUnconfiguredNamespaces
|
protected boolean |
processUndefinedAttributes
|
protected ProfileCache |
profileCache
|
protected boolean |
profileDiffDigestVerification
|
protected java.util.Vector |
rdfsUri
|
protected java.lang.String |
rdfUri
|
protected boolean |
refreshStaleProfiles
|
private static long |
serialVersionUID
Comment for serialVersionUID |
private javax.servlet.ServletContext |
servletContext
|
protected boolean |
useLocalProfilesIfNoCCPP
|
protected static boolean |
useLog4j
|
protected Vocabulary |
vocabulary
|
Constructor Summary | |
Workspace()
|
Method Summary | |
void |
configure(javax.servlet.ServletContext sc,
java.lang.String filename)
This method processes the configuration file and constructs the vocabulary, profile cache and local profiles objects. |
protected org.xml.sax.InputSource |
getInputSource(java.lang.String name)
|
static Workspace |
getInstance()
|
static java.lang.String |
getPath()
|
protected java.io.InputStream |
getResource(java.lang.String name)
This method returns a local or global resource. |
protected static void |
printDebug(java.lang.String output)
This method provides conditional output for debugging purposes. |
protected static void |
printInfo(java.lang.String output)
This method provides conditional output for debugging purposes. |
protected static void |
printWarning(java.lang.String output)
This method provides conditional output for debugging purposes. |
static void |
setInstance(Workspace w)
|
private java.lang.String |
setUriProperty(org.w3c.dom.Node n)
This method retrieves a URI value from the configuration file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
serialVersionUID
public static java.lang.String deliVersionNumber
private static org.apache.log4j.Logger logger
private static transient Workspace _instance
private static final long HOURINMILLISECONDS
protected static boolean useLog4j
protected static java.lang.String path
protected java.util.HashMap datatypeExpressions
private transient javax.servlet.ServletContext servletContext
protected Vocabulary vocabulary
protected transient ProfileCache profileCache
protected transient LocalProfiles localProfiles
protected long maxCachedProfileLifetime
protected int maxCacheSize
protected boolean datatypeValidationOn
protected boolean refreshStaleProfiles
protected boolean processUndefinedAttributes
protected boolean normaliseWhitespaceInProfileDiff
protected boolean profileDiffDigestVerification
protected boolean useLocalProfilesIfNoCCPP
protected java.lang.String localProfilesPath
protected java.lang.String datatypeConfigFile
protected boolean processUnconfiguredNamespaces
protected boolean printDefaults
protected boolean debug
protected boolean debugRequestHeaders
protected boolean printProfileBeforeMerge
protected boolean cacheReferenceProfiles
protected java.lang.String rdfUri
protected java.util.Vector rdfsUri
protected java.lang.String componentProperty
protected boolean preferLocalOverRemoteProfiles
protected boolean enforceUAProfTwoDatatypes
Constructor Detail |
public Workspace()
Method Detail |
public static Workspace getInstance()
public static void setInstance(Workspace w)
public void configure(javax.servlet.ServletContext sc, java.lang.String filename) throws javax.xml.parsers.ParserConfigurationException
sc
- The servlet context.filename
- The filename of the configuration file.
javax.xml.parsers.ParserConfigurationException
protected static void printDebug(java.lang.String output)
output
- The string to output.protected static void printWarning(java.lang.String output)
output
- The string to output.protected static void printInfo(java.lang.String output)
output
- The string to output.private java.lang.String setUriProperty(org.w3c.dom.Node n)
n
- The current node.protected org.xml.sax.InputSource getInputSource(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getPath()
protected java.io.InputStream getResource(java.lang.String name) throws java.lang.Exception
name
- The name of the resource. If it is a URL then it is a global resource.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |