This project has retired. For details please refer to its
        
        Attic page .
      
EncodingXHTMLSerializer (Apache Cocoon 3: Parent 3.0.0-beta-1-SNAPSHOT API)
 
 
org.apache.cocoon.optional.servlet.components.sax.serializers 
 
java.lang.Object 
  org.apache.cocoon.optional.servlet.components.sax.serializers.EncodingXHTMLSerializer 
 
All Implemented Interfaces:  CachingPipelineComponent , Consumer , Finisher , PipelineComponent , SAXConsumer , SAXPipelineComponent , ContentHandler , LexicalHandler , Locator  
public class EncodingXHTMLSerializer  extends org.apache.cocoon.components.serializers.util.XHTMLSerializerimplements SAXPipelineComponent , Finisher , SAXConsumer , CachingPipelineComponent    
 A pedantinc XHTML serializer encoding all recognized entities with their proper HTML names.
 
 
 
 For configuration options of this serializer, please look at the
 EncodingSerializer, in addition to those, this serializer also
 support the specification of a default doctype. This default will be used if no document type is received in the SAX
 events, and can be configured in the following way:
 
 
 
 <map:serialize type="exhtml" doctype-default="mytype" />
  
 
 
 The value mytype  can be one of:
 
 
 
 "none" 
 Not to emit any dococument type declaration. 
 "strict" 
 The XHTML 1.0 Strict document type. 
 "loose" 
 The XHTML 1.0 Transitional document type. 
 "frameset" 
 The XHTML 1.0 Frameset document type. 
  
Version: $Id: EncodingXHTMLSerializer.html 1343757 2012-05-29 14:45:42Z ilgrosso $ 
 
 
Fields inherited from class org.apache.cocoon.components.serializers.util.XHTMLSerializer  
doctype_default, encodeCharacters, XHTML1_DOCTYPE_FRAMESET, XHTML1_DOCTYPE_STRICT, XHTML1_DOCTYPE_TRANSITIONAL, XHTML1_NAMESPACE 
 
Fields inherited from class org.apache.cocoon.components.serializers.util.XMLSerializer  
doctype 
 
Fields inherited from class org.apache.cocoon.components.serializers.util.EncodingSerializer  
ATTRIBUTE_LENGTH, ATTRIBUTE_LOCAL, ATTRIBUTE_NSURI, ATTRIBUTE_QNAME, ATTRIBUTE_VALUE, charset, CONTENT_LIST_ATTRIBUTE, indentPerLevel, NAMESPACE, namespaces, request 
 
Methods inherited from class org.apache.cocoon.components.serializers.util.XHTMLSerializer  
body, encode, endElementImpl, getMimeType, head, isCdataElement, setDoctypeDefault, setOmitXmlDeclaration, startElementImpl 
 
Methods inherited from class org.apache.cocoon.components.serializers.util.XMLSerializer  
charactersImpl, closeElement, comment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, recycle, skippedEntity, startCDATA, startDocument, startDTD, startEntity 
 
Methods inherited from class org.apache.cocoon.components.serializers.util.EncodingSerializer  
characters, encode, encode, endElement, endPrefixMapping, flush, getColumnNumber, getLineNumber, getLocation, getPublicId, getSystemId, include, setDocumentLocator, setEncoding, setIndentPerLevel, setup, startElement, startPrefixMapping, write, write, write, write, write, writeIndent, writeln, writeln 
 
Methods inherited from interface org.xml.sax.ContentHandler   
characters , endDocument , endElement , endPrefixMapping , ignorableWhitespace , processingInstruction , setDocumentLocator , skippedEntity , startDocument , startElement , startPrefixMapping  
 
EncodingXHTMLSerializer 
public EncodingXHTMLSerializer () 
 
constructCacheKey 
public CacheKey  constructCacheKey () 
Specified by: constructCacheKey CachingPipelineComponent  
 
 
finish 
public void finish () 
Description copied from interface: PipelineComponent  This method is called after pipeline run - regardless if the run was
 successful or an exception was thrown.
Specified by: finish PipelineComponent  
 
  
getContentType 
public String  getContentType () 
Specified by: getContentType Finisher  
 
 
setConfiguration 
public void setConfiguration (Map <String ,? extends Object > configuration) 
Description copied from interface: PipelineComponent  Pass component specific configuration parameters to the pipeline
 component in a generic way. This is useful in environments that
 automatically assemble pipelines with their components and can't use the
 components constructors or setters.
Specified by: setConfiguration PipelineComponent  
Parameters: configuration - The Map 
  
setOutputStream 
public void setOutputStream (OutputStream  outputStream) 
Specified by: setOutputStream Finisher Overrides: setOutputStream in class org.apache.cocoon.components.serializers.util.EncodingSerializer 
 
 
setup 
public void setup (Map <String ,Object > parameters) 
Description copied from interface: PipelineComponent  The shared object map for this pipeline run.
Specified by: setup PipelineComponent  
Parameters: parameters - A MapPipelineComponent 
  
toString 
public String  toString () 
Overrides: toString Object  
 
 
The Apache Software Foundation . All Rights Reserved.