|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.apache.cocoon.transformation.AbstractSAXTransformer
org.apache.cocoon.portal.transformation.RSSTransformer
public final class RSSTransformer
This transformer records the content of all description elements and tries to interpret them as valid XML. It's actually a quick hack...
| Field Summary | |
|---|---|
protected XMLDeserializer |
deserializer
The xml deserializer |
protected XMLConsumer |
filter
The filter |
protected XMLizer |
xmlizer
The xmlizer for converting html to xml |
| Fields inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
|---|
context, defaultNamespaceURI, EMPTY_ATTRIBUTES, emptyAttributes, ignoreEmptyCharacters, ignoreEventsCount, ignoreHooksCount, ignoreWhitespaces, manager, namespaceURI, objectModel, parameters, recorderStack, request, resolver, response, source, stack |
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
RSSTransformer()
|
|
| Method Summary | |
|---|---|
void |
endElement(String uri,
String name,
String raw)
receive notification of end element event. |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
recycle()
Recycle the producer by removing references, and resetting handlers to null (empty) implementations. |
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 |
setupTransforming()
Setup the transformation of an xml document. |
void |
startElement(String uri,
String name,
String raw,
Attributes attributes)
receive notification of start element event. |
| 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.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Field Detail |
|---|
protected XMLizer xmlizer
protected XMLDeserializer deserializer
protected XMLConsumer filter
| Constructor Detail |
|---|
public RSSTransformer()
| Method Detail |
|---|
public void startElement(String uri,
String name,
String raw,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class AbstractSAXTransformeruri - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name - The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw - The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.attributes - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
SAXExceptionContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri,
String name,
String raw)
throws SAXException
endElement in interface ContentHandlerendElement in class AbstractSAXTransformeruri - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name - The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw - The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
SAXExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)public void recycle()
AbstractXMLProducer
recycle in interface Recyclablerecycle in class AbstractSAXTransformer
public void setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws ProcessingException,
SAXException,
IOException
SitemapModelComponentSourceResolver, objectModel Map,
the source and sitemap Parameters used to process the request.
setup in interface SitemapModelComponentsetup in class AbstractSAXTransformerProcessingException
SAXException
IOException
public void setupTransforming()
throws IOException,
ProcessingException,
SAXException
AbstractSAXTransformer
setupTransforming in class AbstractSAXTransformerIOException
ProcessingException
SAXExceptionpublic Serializable getKey()
CacheableProcessingComponent
getKey in interface CacheableProcessingComponentnull if the component
is currently not cacheable.public SourceValidity getValidity()
CacheableProcessingComponent
getValidity in interface CacheableProcessingComponentnull if the
component is currently not cacheable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||