Interface PipelineContent

  • All Known Implementing Classes:
    PipelineContentImpl

    public interface PipelineContent
    wrapper to content that is being processed through the content processor pipeline
    Author:
    hyanghee
    • Method Detail

      • getId

        String getId()
        get the id of this content
        Returns:
        id
      • setId

        void setId​(String id)
        set the id of this content
        Parameters:
        id -
      • setContentStream

        void setContentStream​(InputStream contentStream)
        set content input stream.this will reset document.
        Parameters:
        contentStream -
      • setDocument

        void setDocument​(org.dom4j.Document document)
        set the content document. this will reset content stream
        Parameters:
        document -
      • getEncoding

        String getEncoding()
        get the encoding of this content
        Returns:
        encoding
      • setEncoding

        void setEncoding​(String encoding)
        set the encoding of this content
        Parameters:
        encoding -
      • getProperties

        Map<String,​String> getProperties()
        get properties of this content
        Returns:
        properties
      • setProperties

        void setProperties​(Map<String,​String> properties)
        set content properties
        Parameters:
        properties -
      • addProperty

        void addProperty​(String key,
                         String value)
        add a content property
        Parameters:
        key -
        value -
      • getProperty

        String getProperty​(String key)
        get a property value given the key
        Parameters:
        key -
        Returns:
        property value
      • closeContentStream

        void closeContentStream()
        close this content