|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.webapps.session.context.SimpleSessionContext
public final class SimpleSessionContext
This is a simple implementation of the session context.
| Constructor Summary | |
|---|---|
SimpleSessionContext(XPathProcessor xPathProcessor,
SourceResolver resolver)
Deprecated. Constructor |
|
| Method Summary | |
|---|---|
void |
appendXML(String path,
DocumentFragment fragment)
Deprecated. Append a document fragment at the given path. |
Object |
getAttribute(String key)
Deprecated. Get a context attribute. |
Object |
getAttribute(String key,
Object defaultObject)
Deprecated. Get a context attribute. |
String |
getName()
Deprecated. Get the name of the context |
NodeList |
getNodeList(String path)
Deprecated. Get a copy all the nodes specified by the path. |
Node |
getSingleNode(String path)
Deprecated. Get a copy the first node specified by the path. |
String |
getValueOfNode(String path)
Deprecated. Get the value of this node. |
DocumentFragment |
getXML(String path)
Deprecated. Get a document fragment. |
void |
loadXML(String path,
SourceParameters parameters)
Deprecated. Try to load XML into the context. |
void |
removeXML(String path)
Deprecated. Remove nodes |
void |
saveXML(String path,
SourceParameters parameters)
Deprecated. Try to save XML from the context. |
void |
setAttribute(String key,
Object value)
Deprecated. Set a context attribute. |
void |
setNode(String path,
Node node)
Deprecated. Set the value of a node. |
void |
setup(String value,
String loadResource,
String saveResource)
Deprecated. Set the name of the context. |
void |
setValueOfNode(String path,
String value)
Deprecated. Set the value of a node. |
void |
setXML(String path,
DocumentFragment fragment)
Deprecated. Set a document fragment at the given path. |
boolean |
streamXML(String path,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Deprecated. Stream the XML directly to the handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSessionContext(XPathProcessor xPathProcessor,
SourceResolver resolver)
throws ProcessingException
ProcessingException| Method Detail |
|---|
public String getName()
getName in interface SessionContext
public void setup(String value,
String loadResource,
String saveResource)
SessionContext
setup in interface SessionContext
public DocumentFragment getXML(String path)
throws ProcessingException
SessionContextnull is returned.
getXML in interface SessionContextProcessingException
public void setXML(String path,
DocumentFragment fragment)
throws ProcessingException
SessionContext
setXML in interface SessionContextProcessingException
public void appendXML(String path,
DocumentFragment fragment)
throws ProcessingException
appendXML in interface SessionContextProcessingException
public void removeXML(String path)
throws ProcessingException
removeXML in interface SessionContextProcessingException
public Node getSingleNode(String path)
throws ProcessingException
getSingleNode in interface SessionContextProcessingException
public NodeList getNodeList(String path)
throws ProcessingException
getNodeList in interface SessionContextProcessingException
public void setNode(String path,
Node node)
throws ProcessingException
setNode in interface SessionContextProcessingException
public void setAttribute(String key,
Object value)
setAttribute in interface SessionContextpublic Object getAttribute(String key)
getAttribute in interface SessionContext
public Object getAttribute(String key,
Object defaultObject)
getAttribute in interface SessionContext
public String getValueOfNode(String path)
throws ProcessingException
null is returned.
getValueOfNode in interface SessionContextProcessingException
public void setValueOfNode(String path,
String value)
throws ProcessingException
setValueOfNode in interface SessionContextProcessingException
public boolean streamXML(String path,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
throws SAXException,
ProcessingException
streamXML in interface SessionContextSAXException
ProcessingException
public void loadXML(String path,
SourceParameters parameters)
throws SAXException,
ProcessingException,
IOException
loadXML in interface SessionContextSAXException
ProcessingException
IOException
public void saveXML(String path,
SourceParameters parameters)
throws SAXException,
ProcessingException,
IOException
saveXML in interface SessionContextSAXException
ProcessingException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||