org.apache.cocoon.sitemap
Class LinkTranslator
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.cocoon.sitemap.LinkTranslator
- All Implemented Interfaces:
- Poolable, Recyclable, Component, LogEnabled, CacheableProcessingComponent, SitemapModelComponent, Transformer, XLinkHandler, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
public class LinkTranslator
- extends ExtendedXLinkPipe
- implements Transformer, CacheableProcessingComponent
- Version:
- CVS $Id: LinkTranslator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Stefano Mazzocchi
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 interface org.apache.cocoon.transformation.Transformer |
ROLE |
Method Summary |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver , objectModel Map ,
the source and sitemap Parameters used to process the request. |
void |
simpleLink(String href,
String role,
String arcrole,
String title,
String show,
String actuate,
String uri,
String name,
String raw,
Attributes attr)
|
void |
startLocator(String href,
String role,
String title,
String label,
String uri,
String name,
String raw,
Attributes attr)
|
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 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 |
LinkTranslator
public LinkTranslator()
setup
public void setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws ProcessingException,
SAXException,
IOException
- Set the
SourceResolver
, objectModel Map
,
the source and sitemap Parameters
used to process the request.
- Specified by:
setup
in interface SitemapModelComponent
- Throws:
ProcessingException
SAXException
IOException
getKey
public Serializable getKey()
- Generate the unique key.
This key must be unique inside the space of this component.
- Specified by:
getKey
in interface CacheableProcessingComponent
- Returns:
- The generated key hashes the src
getValidity
public SourceValidity getValidity()
- Generate the validity object.
- Specified by:
getValidity
in interface CacheableProcessingComponent
- Returns:
- The generated validity object or
null
if the
component is currently not cacheable.
simpleLink
public void simpleLink(String href,
String role,
String arcrole,
String title,
String show,
String actuate,
String uri,
String name,
String raw,
Attributes attr)
throws SAXException
- Specified by:
simpleLink
in interface XLinkHandler
- Overrides:
simpleLink
in class ExtendedXLinkPipe
- Throws:
SAXException
startLocator
public void startLocator(String href,
String role,
String title,
String label,
String uri,
String name,
String raw,
Attributes attr)
throws SAXException
- Specified by:
startLocator
in interface XLinkHandler
- Overrides:
startLocator
in class XLinkPipe
- Throws:
SAXException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.