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

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

Deprecated. This block is deprecated and will be removed in future versions.

public class SessionPostTransformer
extends SessionPreTransformer

This is the session post transformer. It does all the setting and destroying. Thus it should be the last transformer (before the xsl) in the pipeline. For performance and simplicity reasons this transformer inherits from the SessionPreTransformer, although this is not needed (but then the implementation of the SessionTransformer would be very unperformant).

Version:
CVS $Id: SessionPostTransformer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
static String APPENDXML_CONTEXT_ATTRIBUTE
          Deprecated.  
static String APPENDXML_ELEMENT
          Deprecated.  
static String APPENDXML_PATH_ATTRIBUTE
          Deprecated.  
static String DELETECONTEXT_ELEMENT
          Deprecated.  
static String DELETECONTEXT_NAME_ATTRIBUTE
          Deprecated.  
static String FORM_ACTION_ELEMENT
          Deprecated. The form action element
static String FORM_CONTENT_ELEMENT
          Deprecated. The form content element
static String FORM_ELEMENT
          Deprecated. The form element
static String FORM_VALIDATESET_ELEMENT
          Deprecated.  
static String FORM_VALIDATION_ELEMENT
          Deprecated. The form validation rules
static String FORM_VALIDATION_SOURCE_ATTRIBUTE
          Deprecated.  
static String INPUTXML_CONTEXT_ATTRIBUTE
          Deprecated.  
static String INPUTXML_ELEMENT
          Deprecated.  
static String INPUTXML_NAME_ATTRIBUTE
          Deprecated.  
static String INPUTXML_PATH_ATTRIBUTE
          Deprecated.  
static String INPUTXML_TYPE_ATTRIBUTE
          Deprecated.  
static String INPUTXML_VALIDATIONRESULT_ATTRIBUTE
          Deprecated.  
static String MERGEXML_CONTEXT_ATTRIBUTE
          Deprecated.  
static String MERGEXML_ELEMENT
          Deprecated.  
static String MERGEXML_PATH_ATTRIBUTE
          Deprecated.  
static String REMOVEXML_CONTEXT_ATTRIBUTE
          Deprecated.  
static String REMOVEXML_ELEMENT
          Deprecated.  
static String REMOVEXML_PATH_ATTRIBUTE
          Deprecated.  
static String SAVECONTEXT_CONTEXT_ATTRIBUTE
          Deprecated.  
static String SAVECONTEXT_ELEMENT
          Deprecated.  
static String SAVECONTEXT_PATH_ATTRIBUTE
          Deprecated.  
static String SETXML_CONTEXT_ATTRIBUTE
          Deprecated.  
static String SETXML_ELEMENT
          Deprecated.  
static String SETXML_PATH_ATTRIBUTE
          Deprecated.  
 
Fields inherited from class org.apache.cocoon.webapps.session.transformation.SessionPreTransformer
CONTEXT_URL_ELEMENT, CREATECONTEXT_ELEMENT, CREATECONTEXT_LOAD_ATTRIBUTE, CREATECONTEXT_NAME_ATTRIBUTE, CREATECONTEXT_SAVE_ATTRIBUTE, GETXML_CONTEXT_ATTRIBUTE, GETXML_ELEMENT, GETXML_PATH_ATTRIBUTE, LOADCONTEXT_CONTEXT_ATTRIBUTE, LOADCONTEXT_ELEMENT, LOADCONTEXT_PATH_ATTRIBUTE, processingGetXML
 
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
SessionPostTransformer()
          Deprecated.  
 
Method Summary
 void endTransformingElement(String uri, String name, String raw)
          Deprecated. Start processing elements of our namespace.
 void setupTransforming()
          Deprecated. Setup the transformation of an xml document.
 void startTransformingElement(String uri, String name, String raw, Attributes attr)
          Deprecated. This is the real implementation of the startElement event for the transformer The event is checked for a valid element and the corresponding command is executed.
 
Methods inherited from class org.apache.cocoon.webapps.session.transformation.SessionPreTransformer
endElement, setup, startElement
 
Methods inherited from class org.apache.cocoon.webapps.session.transformation.AbstractSessionTransformer
getContextManager, getFormManager, getSession, getSessionManager, recycle
 
Methods inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer
addRecorder, characters, comment, configure, dispose, endCDATA, endDocument, endDTD, endEntity, endParametersRecording, endParametersRecording, endPrefixMapping, endRecording, endSAXRecording, endSerializedXMLRecording, endTextRecording, findPrefixMapping, getMutableAttributes, ignorableWhitespace, processingInstruction, removeRecorder, sendEndElementEvent, sendEndElementEventNS, sendEndPrefixMapping, sendEvents, sendParametersEvents, sendStartElementEvent, sendStartElementEvent, sendStartElementEventNS, sendStartElementEventNS, sendStartPrefixMapping, sendTextEvent, service, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startParametersRecording, startPrefixMapping, startRecording, startSAXRecording, startSerializedXMLRecording, startTextRecording
 
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

DELETECONTEXT_ELEMENT

public static final String DELETECONTEXT_ELEMENT
Deprecated. 
See Also:
Constant Field Values

DELETECONTEXT_NAME_ATTRIBUTE

public static final String DELETECONTEXT_NAME_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

SETXML_ELEMENT

public static final String SETXML_ELEMENT
Deprecated. 
See Also:
Constant Field Values

SETXML_CONTEXT_ATTRIBUTE

public static final String SETXML_CONTEXT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

SETXML_PATH_ATTRIBUTE

public static final String SETXML_PATH_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

APPENDXML_ELEMENT

public static final String APPENDXML_ELEMENT
Deprecated. 
See Also:
Constant Field Values

APPENDXML_CONTEXT_ATTRIBUTE

public static final String APPENDXML_CONTEXT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

APPENDXML_PATH_ATTRIBUTE

public static final String APPENDXML_PATH_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

REMOVEXML_ELEMENT

public static final String REMOVEXML_ELEMENT
Deprecated. 
See Also:
Constant Field Values

REMOVEXML_CONTEXT_ATTRIBUTE

public static final String REMOVEXML_CONTEXT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

REMOVEXML_PATH_ATTRIBUTE

public static final String REMOVEXML_PATH_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

MERGEXML_ELEMENT

public static final String MERGEXML_ELEMENT
Deprecated. 
See Also:
Constant Field Values

MERGEXML_CONTEXT_ATTRIBUTE

public static final String MERGEXML_CONTEXT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

MERGEXML_PATH_ATTRIBUTE

public static final String MERGEXML_PATH_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

SAVECONTEXT_ELEMENT

public static final String SAVECONTEXT_ELEMENT
Deprecated. 
See Also:
Constant Field Values

SAVECONTEXT_CONTEXT_ATTRIBUTE

public static final String SAVECONTEXT_CONTEXT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

SAVECONTEXT_PATH_ATTRIBUTE

public static final String SAVECONTEXT_PATH_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

INPUTXML_ELEMENT

public static final String INPUTXML_ELEMENT
Deprecated. 
See Also:
Constant Field Values

INPUTXML_CONTEXT_ATTRIBUTE

public static final String INPUTXML_CONTEXT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

INPUTXML_PATH_ATTRIBUTE

public static final String INPUTXML_PATH_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

INPUTXML_NAME_ATTRIBUTE

public static final String INPUTXML_NAME_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

INPUTXML_TYPE_ATTRIBUTE

public static final String INPUTXML_TYPE_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

INPUTXML_VALIDATIONRESULT_ATTRIBUTE

public static final String INPUTXML_VALIDATIONRESULT_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

FORM_ELEMENT

public static final String FORM_ELEMENT
Deprecated. 
The form element

See Also:
Constant Field Values

FORM_ACTION_ELEMENT

public static final String FORM_ACTION_ELEMENT
Deprecated. 
The form action element

See Also:
Constant Field Values

FORM_CONTENT_ELEMENT

public static final String FORM_CONTENT_ELEMENT
Deprecated. 
The form content element

See Also:
Constant Field Values

FORM_VALIDATION_ELEMENT

public static final String FORM_VALIDATION_ELEMENT
Deprecated. 
The form validation rules

See Also:
Constant Field Values

FORM_VALIDATION_SOURCE_ATTRIBUTE

public static final String FORM_VALIDATION_SOURCE_ATTRIBUTE
Deprecated. 
See Also:
Constant Field Values

FORM_VALIDATESET_ELEMENT

public static final String FORM_VALIDATESET_ELEMENT
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

SessionPostTransformer

public SessionPostTransformer()
Deprecated. 
Method Detail

setupTransforming

public void setupTransforming()
                       throws ProcessingException,
                              SAXException,
                              IOException
Deprecated. 
Description copied from class: AbstractSAXTransformer
Setup the transformation of an xml document. This method is called just before the transformation (sending of sax events) starts. It should be used to initialize setup parameter depending on the object modell.

Overrides:
setupTransforming in class AbstractSAXTransformer
Throws:
ProcessingException
SAXException
IOException

startTransformingElement

public void startTransformingElement(String uri,
                                     String name,
                                     String raw,
                                     Attributes attr)
                              throws ProcessingException,
                                     IOException,
                                     SAXException
Deprecated. 
This is the real implementation of the startElement event for the transformer The event is checked for a valid element and the corresponding command is executed.

Overrides:
startTransformingElement in class SessionPreTransformer
Parameters:
uri - The namespace of the element.
name - The local name of the element.
raw - The qualified name of the element.
attr - The attributes of the element.
Throws:
ProcessingException
IOException
SAXException

endTransformingElement

public void endTransformingElement(String uri,
                                   String name,
                                   String raw)
                            throws ProcessingException,
                                   IOException,
                                   SAXException
Deprecated. 
Description copied from class: AbstractSAXTransformer
Start processing elements of our namespace. This hook is invoked for each sax event with our namespace.

Overrides:
endTransformingElement in class SessionPreTransformer
Parameters:
uri - The namespace of the element.
name - The local name of the element.
raw - The qualified name of the element.
Throws:
ProcessingException
IOException
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.