Interface PipelineContent
- All Known Implementing Classes:
PipelineContentImpl
public interface PipelineContent
wrapper to content that is being processed through the content processor pipeline
- Author:
- hyanghee
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, String value) add a content propertyvoidclose this contentget this content as input streamorg.dom4j.Documentget this content as XML Documentget the encoding of this contentgetId()get the id of this contentget properties of this contentgetProperty(String key) get a property value given the keyvoidsetContentStream(InputStream contentStream) set content input stream.this will reset document.voidsetDocument(org.dom4j.Document document) set the content document.voidsetEncoding(String encoding) set the encoding of this contentvoidset the id of this contentvoidsetProperties(Map<String, String> properties) set content properties
-
Field Details
-
KEY_CONTENT_TYPE
- See Also:
-
KEY_FILE_NAME
- See Also:
-
KEY_SITE
- See Also:
-
KEY_PATH
- See Also:
-
-
Method Details
-
getId
String getId()get the id of this content- Returns:
- id
-
setId
set the id of this content- Parameters:
id-
-
getContentStream
get this content as input stream- Returns:
- input stream
- Throws:
ContentProcessException
-
setContentStream
set content input stream.this will reset document.- Parameters:
contentStream-
-
getDocument
get this content as XML Document- Returns:
- document
- Throws:
ContentProcessException
-
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
set the encoding of this content- Parameters:
encoding-
-
getProperties
get properties of this content- Returns:
- properties
-
setProperties
set content properties- Parameters:
properties-
-
addProperty
add a content property- Parameters:
key-value-
-
getProperty
get a property value given the key- Parameters:
key-- Returns:
- property value
-
closeContentStream
void closeContentStream()close this content
-