org.apache.synapse.util.jaxp
Class DOOMResultBuilder

java.lang.Object
  extended by org.apache.synapse.util.jaxp.DOOMResultBuilder
All Implemented Interfaces:
ResultBuilder

public class DOOMResultBuilder
extends Object
implements ResultBuilder

ResultBuilder implementation that produces a DOMResult with an empty DOOM document. It reimports the document as a normal AXIOM tree using ElementHelper.importOMElement(OMElement, org.apache.axiom.om.OMFactory).


Constructor Summary
DOOMResultBuilder()
           
 
Method Summary
 OMElement getNode(Charset charset)
          Get the result written to the Result as an OMElement.
 Result getResult()
          Get a Result implementation that can be used with an XSL transformer.
 void release()
          Release any resources associated with this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOOMResultBuilder

public DOOMResultBuilder()
Method Detail

getResult

public Result getResult()
Description copied from interface: ResultBuilder
Get a Result implementation that can be used with an XSL transformer.

Specified by:
getResult in interface ResultBuilder
Returns:
the result object

getNode

public OMElement getNode(Charset charset)
Description copied from interface: ResultBuilder
Get the result written to the Result as an OMElement. Note that the exact behavior of this methos depends on the specified ResultBuilderFactory.Output.

Specified by:
getNode in interface ResultBuilder
Parameters:
charset - The charset encoding of the data that has been written to the Result object. This information should only be used in conjunction with ResultBuilderFactory.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 interface ResultBuilder


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.