Class ContentContext

  • All Implemented Interfaces:
    Serializable

    public class ContentContext
    extends Object
    implements Serializable
    The location and lookup data for content. The very least data required to find content or assign a content writer is the content URL and any previous content that may have logically existed.

    Although this class is doesn't enforce any conditions on the context, derived instances may have relationships that need to be maintained between various context values.

    Author:
    Derek Hulley
    See Also:
    Serialized Form
    • Field Detail

      • NULL_CONTEXT

        public static final ContentContext NULL_CONTEXT
        An empty context.
    • Constructor Detail

      • ContentContext

        public ContentContext​(ContentReader existingContentReader,
                              String contentUrl)
        Construct the instance with the content URL.
        Parameters:
        existingContentReader - content with which to seed the new writer - may be null
        contentUrl - the content URL - may be null
    • Method Detail

      • getExistingContentReader

        public ContentReader getExistingContentReader()
        Returns:
        Returns the content to seed the writer with - may be null
      • getContentUrl

        public String getContentUrl()
        Returns:
        Returns the content URL for the content's context - may be null