org.apache.cocoon.transformation
Class WebDAVTransformer
java.lang.Object
org.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.transformation.WebDAVTransformer
- All Implemented Interfaces:
- Poolable, Recyclable, Disposable, Component, Configurable, LogEnabled, Serviceable, CacheableProcessingComponent, SitemapModelComponent, Transformer, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
public class WebDAVTransformer
- extends AbstractSAXTransformer
- implements Disposable, CacheableProcessingComponent
A general purpose, low level webdav transformer. Sends http requests defined in xml
directly to the server and returns the response to the processing stream.
For a more high level approach, use WebDAVSource (GET/PUT/PROPPATCH) and DASLTransformer (SEARCH).
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 interface org.apache.cocoon.transformation.Transformer |
ROLE |
Method Summary |
void |
dispose()
|
void |
endElement(String uri,
String name,
String raw)
Process the SAX 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 |
startElement(String uri,
String name,
String raw,
Attributes atts)
Process the SAX event. |
Methods inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
addRecorder, characters, comment, configure, endCDATA, endDocument, endDTD, endEntity, endParametersRecording, endParametersRecording, endPrefixMapping, endRecording, endSAXRecording, endSerializedXMLRecording, endTextRecording, endTransformingElement, findPrefixMapping, getMutableAttributes, ignorableWhitespace, processingInstruction, removeRecorder, sendEndElementEvent, sendEndElementEventNS, sendEndPrefixMapping, sendEvents, sendParametersEvents, sendStartElementEvent, sendStartElementEvent, sendStartElementEventNS, sendStartElementEventNS, sendStartPrefixMapping, sendTextEvent, service, setDocumentLocator, setupTransforming, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startParametersRecording, startPrefixMapping, startRecording, startSAXRecording, startSerializedXMLRecording, startTextRecording, startTransformingElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDAVTransformer
public WebDAVTransformer()
setup
public void setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws ProcessingException,
SAXException,
IOException
- Description copied from interface:
SitemapModelComponent
- Set the
SourceResolver
, objectModel Map
,
the source and sitemap Parameters
used to process the request.
- Specified by:
setup
in interface SitemapModelComponent
- Overrides:
setup
in class AbstractSAXTransformer
- Throws:
ProcessingException
SAXException
IOException
recycle
public void recycle()
- Description copied from class:
AbstractXMLProducer
- Recycle the producer by removing references, and resetting handlers to
null (empty) implementations.
- Specified by:
recycle
in interface Recyclable
- Overrides:
recycle
in class AbstractSAXTransformer
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
- Overrides:
dispose
in class AbstractSAXTransformer
startElement
public void startElement(String uri,
String name,
String raw,
Attributes atts)
throws SAXException
- Description copied from class:
AbstractSAXTransformer
- Process the SAX event. The namespace of the event is checked.
If it is the defined namespace for this transformer,
the
AbstractSAXTransformer.startTransformingElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
hook is called.
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class AbstractSAXTransformer
- Parameters:
uri
- 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.atts
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
- Throws:
SAXException
- See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
endElement
public void endElement(String uri,
String name,
String raw)
throws SAXException
- Description copied from class:
AbstractSAXTransformer
- Process the SAX event. The namespace of the event is checked.
If it is the defined namespace for this transformer,
the
AbstractSAXTransformer.endTransformingElement(java.lang.String, java.lang.String, java.lang.String)
hook is called.
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class AbstractSAXTransformer
- Parameters:
uri
- 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.
- Throws:
SAXException
- See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
getKey
public Serializable getKey()
- Description copied from interface:
CacheableProcessingComponent
- Generate the unique key.
This key must be unique inside the space of this component.
This method must be invoked before the getValidity() method.
- Specified by:
getKey
in interface CacheableProcessingComponent
- Returns:
- The generated key or
null
if the component
is currently not cacheable.
getValidity
public SourceValidity getValidity()
- Description copied from interface:
CacheableProcessingComponent
- Generate the validity object.
Before this method can be invoked the getKey() method
must be invoked.
- Specified by:
getValidity
in interface CacheableProcessingComponent
- Returns:
- The generated validity object or
null
if the
component is currently not cacheable.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.