Package org.apache.synapse.util.jaxp
Class AXIOMResultBuilder
- java.lang.Object
-
- org.apache.synapse.util.jaxp.AXIOMResultBuilder
-
- All Implemented Interfaces:
ResultBuilder
public class AXIOMResultBuilder extends Object implements ResultBuilder
ResultBuilder
implementation that relies onOMResult
.
-
-
Constructor Summary
Constructors Constructor Description AXIOMResultBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.axiom.om.OMElement
getNode(Charset charset)
Get the result written to theResult
as anOMElement
.org.apache.axiom.om.impl.jaxp.OMResult
getResult()
Get aResult
implementation that can be used with an XSL transformer.void
release()
Release any resources associated with this object.
-
-
-
Method Detail
-
getResult
public org.apache.axiom.om.impl.jaxp.OMResult getResult()
Description copied from interface:ResultBuilder
Get aResult
implementation that can be used with an XSL transformer.- Specified by:
getResult
in interfaceResultBuilder
- Returns:
- the result object
-
getNode
public org.apache.axiom.om.OMElement getNode(Charset charset)
Description copied from interface:ResultBuilder
Get the result written to theResult
as anOMElement
. Note that the exact behavior of this methos depends on the specifiedResultBuilderFactory.Output
.- Specified by:
getNode
in interfaceResultBuilder
- Parameters:
charset
- The charset encoding of the data that has been written to theResult
object. 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:ResultBuilder
Release any resources associated with this object.- Specified by:
release
in interfaceResultBuilder
-
-