org.codehaus.xfire.util.dom
Class DOMOutHandler

java.lang.Object
  extended by org.codehaus.xfire.handler.AbstractHandler
      extended by org.codehaus.xfire.util.dom.DOMOutHandler
All Implemented Interfaces:
Handler

public class DOMOutHandler
extends AbstractHandler

Creates a org.w3c.dom.Document for the outgoing message and sets the outgoing message's serializer to a DOMSerializer.

To access the DOM simply do:

 OutMessage msg = context.getOutMessage();
 Document doc = (Document) msg.getProperty(DOMOutHandler.DOM_MESSAGE);
 


Field Summary
static java.lang.String DOM_MESSAGE
           
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
DOMOutHandler()
           
 
Method Summary
 void invoke(MessageContext context)
          Invoke a handler.
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler
after, before, getAfter, getBefore, getPhase, getRoles, getUnderstoodHeaders, handleFault, setAfter, setBefore, setPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOM_MESSAGE

public static final java.lang.String DOM_MESSAGE
See Also:
Constant Field Values
Constructor Detail

DOMOutHandler

public DOMOutHandler()
Method Detail

invoke

public void invoke(MessageContext context)
            throws java.lang.Exception
Description copied from interface: Handler
Invoke a handler. If a fault occurs it will be handled via the handleFault method.

Throws:
java.lang.Exception


Copyright © 2004-2008. All Rights Reserved.