|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.AbstractLogEnabled org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.xml.AbstractXMLPipe org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.transformation.LogTransformer
The LogTransformer
is a class that can be plugged into a pipeline
to print the SAX events which passes thru this transformer in a readable form
to a file.
The file will be specified in a parameter tag in the sitemap pipeline to the
transformer as follows:
<map:transform type="log"> <map:parameter name="logfile" value="logfile.log"/> <map:parameter name="append" value="no"/> </map:transform>Because the log file will be hardcoded into the sitemap this LOGTransformer will not be thread save!!
Field Summary |
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 | |
LogTransformer()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int len)
Receive notification of character data. |
void |
comment(char[] ch,
int start,
int len)
Report an XML comment anywhere in the document. |
void |
destroy()
Attempt to close the log file when the class is GC'd |
void |
endCDATA()
Report the end of a CDATA section. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endDTD()
Report the end of DTD declarations. |
void |
endElement(String uri,
String loc,
String raw)
Receive notification of the end of an element. |
void |
endEntity(String name)
Report the end of an entity. |
void |
endPrefixMapping(String prefix)
End the scope of a prefix-URI mapping. |
void |
ignorableWhitespace(char[] ch,
int start,
int len)
Receive notification of ignorable whitespace in element content. |
void |
processingInstruction(String target,
String data)
Receive notification of a processing instruction. |
void |
recycle()
Recycle |
void |
setDocumentLocator(Locator locator)
Receive an object for locating the origin of SAX document events. |
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters parameters)
Setup |
void |
skippedEntity(String name)
Receive notification of a skipped entity. |
void |
startCDATA()
Report the start of a CDATA section. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startDTD(String name,
String publicId,
String systemId)
Report the start of DTD declarations, if any. |
void |
startElement(String uri,
String loc,
String raw,
Attributes a)
Receive notification of the beginning of an element. |
void |
startEntity(String name)
Report the beginning of an entity. |
void |
startPrefixMapping(String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping. |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
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 |
Constructor Detail |
public LogTransformer()
Method Detail |
public void setup(org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String src, Parameters parameters) throws org.apache.cocoon.ProcessingException, SAXException, IOException
org.apache.cocoon.ProcessingException
SAXException
IOException
public void recycle()
public void setDocumentLocator(Locator locator)
public void startDocument() throws SAXException
SAXException
public void endDocument() throws SAXException
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
SAXException
public void endPrefixMapping(String prefix) throws SAXException
SAXException
public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException
SAXException
public void endElement(String uri, String loc, String raw) throws SAXException
SAXException
public void characters(char[] ch, int start, int len) throws SAXException
SAXException
public void ignorableWhitespace(char[] ch, int start, int len) throws SAXException
SAXException
public void processingInstruction(String target, String data) throws SAXException
SAXException
public void skippedEntity(String name) throws SAXException
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
SAXException
public void endDTD() throws SAXException
SAXException
public void startEntity(String name) throws SAXException
SAXException
public void endEntity(String name) throws SAXException
SAXException
public void startCDATA() throws SAXException
SAXException
public void endCDATA() throws SAXException
SAXException
public void comment(char[] ch, int start, int len) throws SAXException
SAXException
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |