Package org.apache.synapse.util.jaxp
Interface ResultBuilder
-
- All Known Implementing Classes:
AXIOMResultBuilder
,DOOMResultBuilder
,StreamResultBuilder
public interface ResultBuilder
Interface encapsulating a strategy to transform an XML infoset written to aResult
object into an AXIOM tree. Implementations of this interface should be used in the following way:- Create a new instance using the appropriate
ResultBuilderFactory
. - Call
getResult()
to get anResult
instance. - Use the
Result
object in the invocation the XSL transformer. - Call
#getNode()
to retrieve the root element of the AXIOM tree. - Call
release()
when the AXIOM tree is no longer needed or when it has been fully built.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.axiom.om.OMElement
getNode(Charset charset)
Get the result written to theResult
as anOMElement
.Result
getResult()
Get aResult
implementation that can be used with an XSL transformer.void
release()
Release any resources associated with this object.
-
-
-
Method Detail
-
getResult
Result getResult()
Get aResult
implementation that can be used with an XSL transformer.- Returns:
- the result object
-
getNode
org.apache.axiom.om.OMElement getNode(Charset charset)
Get the result written to theResult
as anOMElement
. Note that the exact behavior of this methos depends on the specifiedResultBuilderFactory.Output
.- 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
void release()
Release any resources associated with this object.
-
-