|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlecho.palomar.dom.NodeBase
org.xmlecho.palomar.dom.ParentNode
org.xmlecho.palomar.dom.NamespacedNode
org.xmlecho.palomar.dom.ElementNode
org.xmlecho.palomar.core.DOMElementImpl
org.xmlecho.palomar.core.ECHORequestImpl
org.xmlecho.palomar.core.ECHORequestServerSide
Base class for server-side implementation of ECHO request objects.
| Field Summary | |
protected static org.apache.log4j.Logger |
_logger
|
protected static SecurityService |
_sec
|
static boolean |
DEBUG
|
| Fields inherited from class org.xmlecho.palomar.dom.ElementNode |
_namespaceURI, name |
| 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 |
| Constructor Summary | |
ECHORequestServerSide()
|
|
| Method Summary | |
protected static void |
addAttribute(org.xml.sax.helpers.AttributesImpl atts,
java.lang.String attname,
java.lang.String attvalue)
writes a cdata attribute with no namespace |
protected void |
endElement(java.lang.String tagname,
org.xml.sax.ContentHandler dest)
|
protected void |
errorResponse(java.lang.Throwable ex,
org.xml.sax.ContentHandler responseTarget,
ECHOContext context)
|
void |
eval(org.xml.sax.ContentHandler responseTarget,
ECHOContext context)
Evaluate the request under the given context, sending the results to the responseTarget ContentHandler. |
void |
evalBody(org.xml.sax.ContentHandler responseTarget,
ECHOContext context,
java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Copy the element, and the results of its contents to the output. |
protected void |
evalCopy(org.xml.sax.ContentHandler responseTarget,
ECHOContext context)
copy the element, and contents to the result |
ECHOContext |
extendContext(ECHOContext parentContext)
adds a new context frame, attaching any locally bound parameters |
protected RepositoryItem |
getItem(ECHOContext context)
get the repository item from parameters in the context |
protected java.lang.String |
getNamespacePrefix()
|
protected static SecurityService |
getSecurityService()
convenience method obtains SecurityService singleton |
ECHORequest |
getSubRequest(int position)
returns a child request which is not a "context, paramSet, documentation or meta" element |
protected User |
getUser(ECHOContext context)
|
protected static void |
log(java.lang.Exception ex)
|
protected void |
startElement(java.lang.String tagname,
org.xml.sax.Attributes atts,
org.xml.sax.ContentHandler dest)
|
protected void |
startElement(java.lang.String tagname,
org.xml.sax.ContentHandler dest)
|
protected void |
writeException(java.lang.Throwable ex,
org.xml.sax.ContentHandler target)
|
protected void |
writeException(java.lang.Throwable ex,
org.xml.sax.ContentHandler target,
ECHOContext context)
|
| Methods inherited from class org.xmlecho.palomar.core.ECHORequestImpl |
eval, getURI |
| Methods inherited from class org.xmlecho.palomar.dom.ElementNode |
appendChild, cloneNode, getAppSelectVal, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getIdAttributeName, getIndexOf, getInheritedAttribute, getLanguage, getLastChild, getLength, getLocalName, getLocation, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTagName, getUserObject, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isReadonly, isSupported, item, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeWhiteSpaces, replaceChild, setAppSelectVal, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttributeName, setLocation, setNamespaceURI, setNodeValue, setPrefix, setReadonly, setTag, setUserObject, supports, toString, trimToSize, write, writeChildrenXml, writeXml |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Methods inherited from interface org.xmlecho.palomar.dom.NodeEx |
getAppSelectVal, getIndexOf, getInheritedAttribute, getLanguage, isReadonly, setAppSelectVal |
| Methods inherited from interface org.xmlecho.palomar.dom.XmlWritable |
writeChildrenXml |
| Field Detail |
protected static SecurityService _sec
protected static org.apache.log4j.Logger _logger
public static boolean DEBUG
| Constructor Detail |
public ECHORequestServerSide()
| Method Detail |
public void eval(org.xml.sax.ContentHandler responseTarget,
ECHOContext context)
throws java.lang.Exception
eval in interface ECHORequesteval in class ECHORequestImplresponseTarget - a SAX2 ContentHandler which will
receive the response
java.lang.Exception
protected void evalCopy(org.xml.sax.ContentHandler responseTarget,
ECHOContext context)
throws java.lang.Exception
java.lang.Exception
public void evalBody(org.xml.sax.ContentHandler responseTarget,
ECHOContext context,
java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws java.lang.Exception
responseTarget - recieves the SAX events representing the results.context - the name/value bindings in effect.nsURI - the namespace name for this element's namespace/localName pair.localName - the localName for this element's namespace/localName pair.qName - the prefix/colon(:)/localName representation of the element's
tagname.atts - attributes to send with the start element event
java.lang.Exception
public ECHOContext extendContext(ECHOContext parentContext)
throws java.lang.Exception
java.lang.Exception
public ECHORequest getSubRequest(int position)
throws java.lang.Exception
java.lang.Exception
protected void writeException(java.lang.Throwable ex,
org.xml.sax.ContentHandler target)
protected void writeException(java.lang.Throwable ex,
org.xml.sax.ContentHandler target,
ECHOContext context)
protected java.lang.String getNamespacePrefix()
protected void errorResponse(java.lang.Throwable ex,
org.xml.sax.ContentHandler responseTarget,
ECHOContext context)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected static final void addAttribute(org.xml.sax.helpers.AttributesImpl atts,
java.lang.String attname,
java.lang.String attvalue)
protected void startElement(java.lang.String tagname,
org.xml.sax.Attributes atts,
org.xml.sax.ContentHandler dest)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void startElement(java.lang.String tagname,
org.xml.sax.ContentHandler dest)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void endElement(java.lang.String tagname,
org.xml.sax.ContentHandler dest)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected static final void log(java.lang.Exception ex)
protected static final SecurityService getSecurityService()
protected User getUser(ECHOContext context)
throws ECHOException
ECHOException
protected RepositoryItem getItem(ECHOContext context)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||