|
||||||||||
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.AbstractSAXTransformer
org.apache.cocoon.webapps.session.transformation.AbstractSessionTransformer
org.apache.cocoon.webapps.session.transformation.SessionPreTransformer
public class SessionPreTransformer
This is the session pre transformer. It does all the getting and creation commands. This transformer should be the first in the pipeline.
Field Summary | |
---|---|
static String |
CONTEXT_URL_ELEMENT
Deprecated. The contexturl element. |
static String |
CREATECONTEXT_ELEMENT
Deprecated. |
static String |
CREATECONTEXT_LOAD_ATTRIBUTE
Deprecated. |
static String |
CREATECONTEXT_NAME_ATTRIBUTE
Deprecated. |
static String |
CREATECONTEXT_SAVE_ATTRIBUTE
Deprecated. |
static String |
GETXML_CONTEXT_ATTRIBUTE
Deprecated. |
static String |
GETXML_ELEMENT
Deprecated. |
static String |
GETXML_PATH_ATTRIBUTE
Deprecated. |
static String |
LOADCONTEXT_CONTEXT_ATTRIBUTE
Deprecated. |
static String |
LOADCONTEXT_ELEMENT
Deprecated. |
static String |
LOADCONTEXT_PATH_ATTRIBUTE
Deprecated. |
protected int |
processingGetXML
Deprecated. Are we inside a getxml? |
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 | |
---|---|
SessionPreTransformer()
Deprecated. |
Method Summary | |
---|---|
void |
endElement(String uri,
String name,
String raw)
Deprecated. Process the SAX event. |
void |
endTransformingElement(String uri,
String name,
String raw)
Deprecated. Start processing elements of our namespace. |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Deprecated. Setup the next round. |
void |
startElement(String uri,
String name,
String raw,
Attributes attr)
Deprecated. Process the SAX event. |
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.AbstractSessionTransformer |
---|
getContextManager, getFormManager, getSession, getSessionManager, recycle |
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 |
---|
public static final String CREATECONTEXT_ELEMENT
public static final String CREATECONTEXT_NAME_ATTRIBUTE
public static final String CREATECONTEXT_SAVE_ATTRIBUTE
public static final String CREATECONTEXT_LOAD_ATTRIBUTE
public static final String GETXML_ELEMENT
public static final String GETXML_CONTEXT_ATTRIBUTE
public static final String GETXML_PATH_ATTRIBUTE
public static final String LOADCONTEXT_ELEMENT
public static final String LOADCONTEXT_CONTEXT_ATTRIBUTE
public static final String LOADCONTEXT_PATH_ATTRIBUTE
public static final String CONTEXT_URL_ELEMENT
protected int processingGetXML
Constructor Detail |
---|
public SessionPreTransformer()
Method Detail |
---|
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
setup
in interface SitemapModelComponent
setup
in class AbstractSAXTransformer
resolver
- The current SourceResolverobjectModel
- The objectModel of the environment.src
- The value of the src attribute in the sitemap.par
- The parameters from the sitemap.
ProcessingException
SAXException
IOException
public void endElement(String uri, String name, String raw) throws SAXException
endElement
in interface ContentHandler
endElement
in class AbstractSAXTransformer
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.
SAXException
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void startElement(String uri, String name, String raw, Attributes attr) throws SAXException
startElement
in interface ContentHandler
startElement
in class AbstractSAXTransformer
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.attr
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void startTransformingElement(String uri, String name, String raw, Attributes attr) throws ProcessingException, IOException, SAXException
startTransformingElement
in class AbstractSAXTransformer
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.
ProcessingException
IOException
SAXException
public void endTransformingElement(String uri, String name, String raw) throws ProcessingException, IOException, SAXException
AbstractSAXTransformer
endTransformingElement
in class AbstractSAXTransformer
uri
- The namespace of the element.name
- The local name of the element.raw
- The qualified name of the element.
ProcessingException
IOException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |