org.apache.cocoon.webapps.session.transformation
Class AbstractSessionTransformer

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.xml.AbstractXMLPipe
              extended byorg.apache.cocoon.transformation.AbstractTransformer
                  extended byorg.apache.cocoon.transformation.AbstractSAXTransformer
                      extended byorg.apache.cocoon.webapps.session.transformation.AbstractSessionTransformer
All Implemented Interfaces:
Configurable, ContentHandler, Disposable, LexicalHandler, LogEnabled, Poolable, Recyclable, Serviceable, SitemapModelComponent, Transformer, XMLConsumer, XMLConsumer, XMLPipe, XMLProducer
Direct Known Subclasses:
SessionPreTransformer

public abstract class AbstractSessionTransformer
extends AbstractSAXTransformer

This class is the basis for all session transformers.

Version:
$Id: AbstractSessionTransformer.java 168372 2005-05-05 18:29:52Z vgritsenko $
Author:
Carsten Ziegeler

Field Summary
 
Fields inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer
context, defaultNamespaceURI, EMPTY_ATTRIBUTES, 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
AbstractSessionTransformer()
           
 
Method Summary
protected  ContextManager getContextManager()
          Get the ContextManager component
protected  FormManager getFormManager()
          Get the FormManager component
 Session getSession()
          Get the current session if available or return null.
protected  SessionManager getSessionManager()
          Get the SessionManager component
 void recycle()
          Recycle this component.
 
Methods inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer
addRecorder, characters, comment, configure, dispose, endCDATA, endDocument, endDTD, endElement, 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, setup, setupTransforming, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startParametersRecording, startPrefixMapping, startRecording, startSAXRecording, startSerializedXMLRecording, startTextRecording, startTransformingElement
 
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
 

Constructor Detail

AbstractSessionTransformer

public AbstractSessionTransformer()
Method Detail

getSessionManager

protected SessionManager getSessionManager()
                                    throws ProcessingException
Get the SessionManager component

Throws:
ProcessingException

getContextManager

protected ContextManager getContextManager()
                                    throws ProcessingException
Get the ContextManager component

Throws:
ProcessingException

getFormManager

protected FormManager getFormManager()
                              throws ProcessingException
Get the FormManager component

Throws:
ProcessingException

recycle

public void recycle()
Recycle this component.

Specified by:
recycle in interface Recyclable
Overrides:
recycle in class AbstractSAXTransformer

getSession

public Session getSession()
                   throws ProcessingException
Get the current session if available or return null.

Returns:
The Session object or null.
Throws:
ProcessingException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.