|
||||||||||
| 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.EncodeURLTransformer
public class EncodeURLTransformer
| Nested Class Summary | |
|---|---|
static class |
EncodeURLTransformer.ElementAttributeMatching
A helper class for matching element names, and attribute names. |
| Field Summary | |
|---|---|
static String |
EXCLUDE_NAME
Configuration name for specifying excluding patterns, ie exclude-name. |
static String |
EXCLUDE_NAME_DEFAULT
Configuration default exclude pattern, ie img/@src |
static String |
INCLUDE_NAME
Configuration name for specifying including patterns, ie include-name. |
static String |
INCLUDE_NAME_DEFAULT
Configuration default exclude pattern, ie . |
| 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 | |
|---|---|
EncodeURLTransformer()
|
|
| Method Summary | |
|---|---|
protected void |
checkForEncoding(Request request)
check if encoding of URLs is neccessary. |
void |
configure(Configuration configuration)
BEGIN SitemapComponent methods |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
recycle()
Recycle resources of this transformer |
void |
setup(SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
Setup the transformer. |
void |
startElement(String uri,
String name,
String raw,
Attributes attributes)
Start parsing an element |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
|---|
characters, comment, endCDATA, endDocument, endDTD, endElement, 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, 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 |
| Field Detail |
|---|
public static final String EXCLUDE_NAME
public static final String INCLUDE_NAME
public static final String EXCLUDE_NAME_DEFAULT
public static final String INCLUDE_NAME_DEFAULT
| Constructor Detail |
|---|
public EncodeURLTransformer()
| Method Detail |
|---|
protected void checkForEncoding(Request request)
public void setup(SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
throws ProcessingException,
SAXException,
IOException
Setup include, and exclude patterns from the parameters
setup in interface SitemapModelComponentresolver - source resolverobjectModel - sitemap objectsparameters - request parameters
ProcessingException
SAXException
IOException
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface Configurableconfiguration - Description of Parameter
ConfigurationException - Description of Exceptionpublic void recycle()
recycle in interface Recyclablerecycle in class AbstractXMLProducerpublic Serializable getKey()
getKey in interface CacheableProcessingComponentpublic SourceValidity getValidity()
getValidity in interface CacheableProcessingComponentnull if the
component is currently not cacheable.
public void startElement(String uri,
String name,
String raw,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class AbstractXMLPipeuri - of the elementname - of the elementraw - name of the elementattributes - list
SAXException - Description of Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||