org.xmlecho.palomar
Interface ECHOContext

All Superinterfaces:
org.w3c.dom.Element, org.w3c.dom.Node
All Known Implementing Classes:
ECHOContextImpl

public interface ECHOContext
extends org.w3c.dom.Element

provides context information for an ECHO processor ECHOContext objects provide the ECHO processor the ability to pass parameters to nested ECHO request handlers ECHOContext objects may contain a handle to a "parent" context. If the requested key is not found in the requested context, it will attempt to find it in the parent context


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 ECHOContext extend()
           
 java.lang.Object get(java.lang.String key)
           
 void put(java.lang.String key, java.lang.Object value)
          stores the value in the local context
 java.lang.Object remove(java.lang.String key)
          removes an object from the context.
 void sendStackTrace(org.xml.sax.ContentHandler target)
          a trace of the nested hierarchy of contexts
 void setParentContext(ECHOContext parentContext)
          a parent context to delegate queries
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Method Detail

get

public java.lang.Object get(java.lang.String key)
Parameters:
key - the name of the requested value
Returns:
the value identified by key

put

public void put(java.lang.String key,
                java.lang.Object value)
stores the value in the local context


remove

public java.lang.Object remove(java.lang.String key)
removes an object from the context.


setParentContext

public void setParentContext(ECHOContext parentContext)
a parent context to delegate queries


sendStackTrace

public void sendStackTrace(org.xml.sax.ContentHandler target)
                    throws org.xml.sax.SAXException
a trace of the nested hierarchy of contexts

Throws:
org.xml.sax.SAXException

extend

public ECHOContext extend()