org.apache.lenya.cms.cocoon.serialization
Class LinkSerializer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.xml.xlink.XLinkPipe
org.apache.cocoon.xml.xlink.ExtendedXLinkPipe
org.apache.lenya.cms.cocoon.serialization.LinkSerializer
- All Implemented Interfaces:
- org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.cocoon.serialization.Serializer, org.apache.cocoon.sitemap.SitemapOutputComponent, org.apache.cocoon.xml.xlink.XLinkHandler, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer, org.apache.excalibur.xml.sax.XMLConsumer, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
public class LinkSerializer
- extends org.apache.cocoon.xml.xlink.ExtendedXLinkPipe
- implements org.apache.cocoon.serialization.Serializer
Link serializer.
TODO: add meaningful javadocs
Fields inherited from class org.apache.cocoon.xml.xlink.XLinkPipe |
XLINK_ACTUATE, XLINK_ARCROLE, XLINK_FROM, XLINK_HREF, XLINK_LABEL, XLINK_NAMESPACE_URI, XLINK_ROLE, XLINK_SHOW, XLINK_TITLE, XLINK_TO, XLINK_TYPE, XLINK_TYPE_ARC, XLINK_TYPE_EXTENDED, XLINK_TYPE_LOCATOR, XLINK_TYPE_RESOURCE, XLINK_TYPE_SIMPLE, XLINK_TYPE_TITLE |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface org.apache.cocoon.serialization.Serializer |
ROLE |
Method Summary |
java.lang.String |
getMimeType()
Get the mime-type of the output of this Component . |
void |
recycle()
Recyclable |
void |
setOutputStream(java.io.OutputStream out)
Set the OutputStream where the requested resource should be serialized. |
boolean |
shouldSetContentLength()
Test if the component wants to set the content length |
void |
simpleLink(java.lang.String href,
java.lang.String role,
java.lang.String arcrole,
java.lang.String title,
java.lang.String show,
java.lang.String actuate,
java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
|
void |
startLocator(java.lang.String href,
java.lang.String role,
java.lang.String title,
java.lang.String label,
java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
|
Methods inherited from class org.apache.cocoon.xml.xlink.ExtendedXLinkPipe |
arrayToSet, startElement |
Methods inherited from class org.apache.cocoon.xml.xlink.XLinkPipe |
endArc, endElement, endExtendedLink, endLocator, linkResource, linkTitle, startArc, startExtendedLink |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
setConsumer |
LinkSerializer
public LinkSerializer()
setOutputStream
public void setOutputStream(java.io.OutputStream out)
throws java.io.IOException
- Set the
OutputStream
where the requested resource should be serialized.
- Specified by:
setOutputStream
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
- Throws:
java.io.IOException
getMimeType
public java.lang.String getMimeType()
- Get the mime-type of the output of this
Component
.
- Specified by:
getMimeType
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
simpleLink
public void simpleLink(java.lang.String href,
java.lang.String role,
java.lang.String arcrole,
java.lang.String title,
java.lang.String show,
java.lang.String actuate,
java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Specified by:
simpleLink
in interface org.apache.cocoon.xml.xlink.XLinkHandler
- Overrides:
simpleLink
in class org.apache.cocoon.xml.xlink.ExtendedXLinkPipe
- Throws:
org.xml.sax.SAXException
startLocator
public void startLocator(java.lang.String href,
java.lang.String role,
java.lang.String title,
java.lang.String label,
java.lang.String uri,
java.lang.String name,
java.lang.String raw,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- Specified by:
startLocator
in interface org.apache.cocoon.xml.xlink.XLinkHandler
- Overrides:
startLocator
in class org.apache.cocoon.xml.xlink.XLinkPipe
- Throws:
org.xml.sax.SAXException
shouldSetContentLength
public boolean shouldSetContentLength()
- Test if the component wants to set the content length
- Specified by:
shouldSetContentLength
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
recycle
public void recycle()
- Recyclable
- Specified by:
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
- Overrides:
recycle
in class org.apache.cocoon.xml.AbstractXMLProducer
Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.