Methods Summary |
---|
protected DynamicContent | addDynamicContent(java.lang.String path, java.lang.String template, java.util.Properties tokenValues, java.lang.String mimeType)
return addDynamicContent(path, template, tokenValues, mimeType, false /* requiresElevatedPrivs */);
|
protected DynamicContent | addDynamicContent(java.lang.String path, java.lang.String template, java.util.Properties tokenValues, java.lang.String mimeType, boolean requiresElevatedPrivs)
// merge - future
String docText = Util.replaceTokens(template, tokenValues);
String contentKey = getContentKeyPrefix() + path;
DynamicContent result = new DynamicContent(this, contentKey, path, docText, mimeType, requiresElevatedPrivs);
pathToContent.put(result.getContentKey(), result);
return result;
|
protected DynamicContent | addDynamicContent(DynamicContent content)
pathToContent.put(content.getContentKey(), content);
return content;
|
protected StaticContent | addStaticContent(java.lang.String path, java.net.URI installRootURI, java.io.File file)
String contentKey = getContentKeyPrefix() + path;
StaticContent result = new StaticContent(this, contentKey, path, file, installRootURI, false /* isMainJar */);
return addStaticContent(result);
|
protected StaticContent | addStaticContent(StaticContent content)
pathToContent.put(content.getContentKey(), content);
return content;
|
void | adhocPathRegistered()Mark the origin as registered with webcontainer.
adhocPathRegistered=true;
|
protected Content | getContent(java.lang.String contentKey)
return pathToContent.get(contentKey);
|
protected abstract java.lang.String | getContentKeyPrefix()Returns the prefix for content keys for content from this origin.
|
public java.util.Collection | getContents()Returns a collection of this origin's contents.
return pathToContent.values();
|
boolean | isAdhocPathRegistered()Return a boolean indicating whether this
is registerd with the webcontainer.
return adhocPathRegistered;
|
public abstract boolean | isEnabled()Returns whether the administrator has enabled this content origin (either
a Java EE application or a stand-alone app client) for Java Web Start
access.
|
public java.lang.String | toLongString()Returns a longer display of information about this origin
return toString() + pathToContent.toString();
|