Class ContentContext

  • All Implemented Interfaces:
    java.io.Serializable

    public class ContentContext
    extends java.lang.Object
    implements java.io.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,
                              java.lang.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

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getExistingContentReader

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

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