Creates a new instance of Content this.origin = origin; this.contentKey = contentKey; this.path = path;
this.origin = origin; this.contentKey = contentKey; this.path = path;
Returns the content key for this content. Prefixing a slash makes it easier to compare this to the pathInfo from an incoming HTTP request that is seeking content. return contentKey;
Prefixing a slash makes it easier to compare this to the pathInfo from an incoming HTTP request that is seeking content.
return contentKey;
Returns the content origin which owns this content.returnContentOrigin for the owning origin return origin;
return origin;
Returns the virtual path within the content's subcategory to the content. return path;
return path;
Returns a string representation of the content. Even though Content is abstract, subclasses use super.toString(). return getClass().getName() + ": content key=" + getContentKey() + ", path=" + getPath();
Even though Content is abstract, subclasses use super.toString().
return getClass().getName() + ": content key=" + getContentKey() + ", path=" + getPath();