This project has retired. For details please refer to its
Attic page .
EncodingHTMLSerializer (Apache Cocoon 3: Parent 3.0.0-beta-1-SNAPSHOT API)
org.apache.cocoon.optional.servlet.components.sax.serializers
Class EncodingHTMLSerializer
java.lang.Object
org.apache.cocoon.components.serializers.util.EncodingSerializer
org.apache.cocoon.components.serializers.util.XMLSerializer
org.apache.cocoon.components.serializers.util.XHTMLSerializer
org.apache.cocoon.components.serializers.util.HTMLSerializer
org.apache.cocoon.optional.servlet.components.sax.serializers.EncodingHTMLSerializer
All Implemented Interfaces: CachingPipelineComponent , Consumer , Finisher , PipelineComponent , SAXConsumer , SAXPipelineComponent , ContentHandler , LexicalHandler , Locator
public class EncodingHTMLSerializer extends org.apache.cocoon.components.serializers.util.HTMLSerializerimplements SAXPipelineComponent , Finisher , SAXConsumer , CachingPipelineComponent
A serializer converting XHTML into plain old HTML.
For configuration options of this serializer, please look at the EncodingXHTMLSerializer and
EncodingSerializer.
Any of the XHTML document type declared or used will be converted into its HTML 4.01 counterpart,
and in addition to those a "compatible" doctype can be supported to exploit a couple of shortcuts
into MSIE's rendering engine. The values for the doctype-default can then be:
"none"
Not to emit any dococument type declaration.
"compatible"
The HTML 4.01 Transitional (exploiting MSIE shortcut).
"strict"
The HTML 4.01 Strict document type.
"loose"
The HTML 4.01 Transitional document type.
"frameset"
The HTML 4.01 Frameset document type.
Version:
$Id: EncodingHTMLSerializer.html 1343757 2012-05-29 14:45:42Z ilgrosso $
Fields inherited from class org.apache.cocoon.components.serializers.util.HTMLSerializer
HTML401_DOCTYPE_COMPATIBLE, HTML401_DOCTYPE_FRAMESET, HTML401_DOCTYPE_STRICT, HTML401_DOCTYPE_TRANSITIONAL
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.HTMLSerializer
body, endElementImpl, head, setDoctypeDefault, startElementImpl
Methods inherited from class org.apache.cocoon.components.serializers.util.XHTMLSerializer
encode, getMimeType, isCdataElement, setOmitXmlDeclaration
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
EncodingHTMLSerializer
public EncodingHTMLSerializer ()
constructCacheKey
public CacheKey constructCacheKey ()
Specified by: constructCacheKey in interface 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 in interface PipelineComponent
getContentType
public String getContentType ()
Specified by: getContentType in interface 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 in interface PipelineComponent
Parameters: configuration - The Map of configuration parameters.
setOutputStream
public void setOutputStream (OutputStream outputStream)
Specified by: setOutputStream in interface 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 in interface PipelineComponent
Parameters: parameters - A Map of parameters that are available to all
PipelineComponent s. This is a modifiable map that can
be changed by this pipeline component.
toString
public String toString ()
Overrides: toString in class Object
Copyright © 2008-2012 The Apache Software Foundation . All Rights Reserved.