Package org.apache.synapse.util.jaxp
Class DOOMResultBuilder
- java.lang.Object
-
- org.apache.synapse.util.jaxp.DOOMResultBuilder
-
- All Implemented Interfaces:
ResultBuilder
public class DOOMResultBuilder extends Object implements ResultBuilder
ResultBuilderimplementation that produces aDOMResultwith an empty DOOM document. It reimports the document as a normal AXIOM tree usingElementHelper.importOMElement(OMElement, org.apache.axiom.om.OMFactory).
-
-
Constructor Summary
Constructors Constructor Description DOOMResultBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.axiom.om.OMElementgetNode(Charset charset)Get the result written to theResultas anOMElement.ResultgetResult()Get aResultimplementation that can be used with an XSL transformer.voidrelease()Release any resources associated with this object.
-
-
-
Method Detail
-
getResult
public Result getResult()
Description copied from interface:ResultBuilderGet aResultimplementation that can be used with an XSL transformer.- Specified by:
getResultin interfaceResultBuilder- Returns:
- the result object
-
getNode
public org.apache.axiom.om.OMElement getNode(Charset charset)
Description copied from interface:ResultBuilderGet the result written to theResultas anOMElement. Note that the exact behavior of this methos depends on the specifiedResultBuilderFactory.Output.- Specified by:
getNodein interfaceResultBuilder- Parameters:
charset- The charset encoding of the data that has been written to theResultobject. This information should only be used in conjunction withResultBuilderFactory.Output.TEXT.- Returns:
- the root element of the AXIOM tree
-
release
public void release()
Description copied from interface:ResultBuilderRelease any resources associated with this object.- Specified by:
releasein interfaceResultBuilder
-
-