|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DomXmlProcessor
The DomXmlProcessor class handles the function of processing an XML document. This includes the ability to for a DOM object from a string representation of the XML document as well as validating the document against the schemas.
Field Summary | |
---|---|
static java.lang.String |
ATTR_REQUEST_DOM
Request attribute to store the request DOM * |
static java.lang.String |
ATTR_RESPONSE_DOM
Request attribute to store the response DOM * |
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
org.w3c.dom.Document |
createDocument(java.lang.String xml,
boolean doValidate)
Create a DOM document from the XML String. |
org.w3c.dom.Document |
getRequestDocument(XcapServerRequest request)
Returns the XML in the request as a DOM Document. |
org.w3c.dom.Document |
getResponseDocument(XcapServerRequest request,
XcapServerResponse response)
Returns the XML in the response as a DOM Document. |
java.lang.String |
node2String(org.w3c.dom.Node node)
Converts a node to a String. |
java.lang.String |
node2String(org.w3c.dom.Node node,
boolean omitXmlDeclaration)
Converts a node to a String. |
Methods inherited from interface com.ibm.xdms.function.XmlProcessor |
---|
addSchema |
Methods inherited from interface com.ibm.xdms.function.Function |
---|
getApplicationUsage, init |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String ATTR_REQUEST_DOM
static final java.lang.String ATTR_RESPONSE_DOM
Method Detail |
---|
org.w3c.dom.Document getRequestDocument(XcapServerRequest request) throws SchemaValidationException, NotWellFormedException, XcapException
request
- The XcapServerRequest
SchemaValidationException
NotWellFormedException
XcapException
org.w3c.dom.Document getResponseDocument(XcapServerRequest request, XcapServerResponse response) throws SchemaValidationException, NotWellFormedException, XcapException
request
- The XcapServerRequestresponse
- The XcapServerResponse
SchemaValidationException
NotWellFormedException
XcapException
org.w3c.dom.Document createDocument(java.lang.String xml, boolean doValidate) throws SchemaValidationException, NotWellFormedException, XcapException
xml
- The XML String.doValidate
- Set to true if validating
SchemaValidationException
NotWellFormedException
XcapException
java.lang.String node2String(org.w3c.dom.Node node) throws XcapException
node
- The node to convert.
XcapException
java.lang.String node2String(org.w3c.dom.Node node, boolean omitXmlDeclaration) throws XcapException
node
- The node to convert.omitXmlDeclaration
- true
if the XML Declaration
should be omitted, false
otherwise
XcapException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |