|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
SessionContext
null
is returned.
getXML
in interface SessionContext
ProcessingException
public void setXML(String path, DocumentFragment fragment) throws ProcessingException
SessionContext
setXML
in interface SessionContext
ProcessingException
public void appendXML(String path, DocumentFragment fragment) throws ProcessingException
appendXML
in interface SessionContext
ProcessingException
public void removeXML(String path) throws ProcessingException
removeXML
in interface SessionContext
ProcessingException
public Node getSingleNode(String path) throws ProcessingException
getSingleNode
in interface SessionContext
ProcessingException
public NodeList getNodeList(String path) throws ProcessingException
getNodeList
in interface SessionContext
ProcessingException
public void setNode(String path, Node node) throws ProcessingException
setNode
in interface SessionContext
ProcessingException
public void setAttribute(String key, Object value)
setAttribute
in interface SessionContext
public 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 SessionContext
ProcessingException
public void setValueOfNode(String path, String value) throws ProcessingException
setValueOfNode
in interface SessionContext
ProcessingException
public boolean streamXML(String path, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws SAXException, ProcessingException
streamXML
in interface SessionContext
SAXException
ProcessingException
public void loadXML(String path, SourceParameters parameters) throws SAXException, ProcessingException, IOException
loadXML
in interface SessionContext
SAXException
ProcessingException
IOException
public void saveXML(String path, SourceParameters parameters) throws SAXException, ProcessingException, IOException
saveXML
in interface SessionContext
SAXException
ProcessingException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |