org.codehaus.xfire.xmlbeans
Class XMLBeansHandler

java.lang.Object
  |
  +--org.codehaus.xfire.AbstractXFireComponent
        |
        +--org.codehaus.xfire.handler.AbstractHandler
              |
              +--org.codehaus.xfire.xmlbeans.XMLBeansHandler
All Implemented Interfaces:
org.codehaus.xfire.handler.Handler

public class XMLBeansHandler
extends org.codehaus.xfire.handler.AbstractHandler
implements org.codehaus.xfire.handler.Handler

Processes an XML document using XMLBeans

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
XMLBeansHandler()
           
 
Method Summary
 org.apache.xmlbeans.XmlObject getObject()
          Returns the body of the SOAP request converted to the native object (POJO or XmlObject or DOMish tree etc) if available or null if the body was not parsed
protected  void handleBody(org.codehaus.xfire.MessageContext context, org.apache.xmlbeans.XmlObject body)
           
 void invoke(org.codehaus.xfire.MessageContext context, javax.xml.stream.XMLStreamReader in)
           
 void reply(org.codehaus.xfire.MessageContext context, org.apache.xmlbeans.XmlObject reply)
          Sends the reply object to the output body
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler
getUnderstoodHeaders, getXMLStreamWriter, handleFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.xfire.handler.Handler
getUnderstoodHeaders, handleFault
 

Constructor Detail

XMLBeansHandler

public XMLBeansHandler()
Method Detail

invoke

public void invoke(org.codehaus.xfire.MessageContext context,
                   javax.xml.stream.XMLStreamReader in)
            throws java.lang.Exception
Specified by:
invoke in interface org.codehaus.xfire.handler.Handler
Specified by:
invoke in class org.codehaus.xfire.handler.AbstractHandler
java.lang.Exception

reply

public void reply(org.codehaus.xfire.MessageContext context,
                  org.apache.xmlbeans.XmlObject reply)
           throws java.lang.Exception
Sends the reply object to the output body

java.lang.Exception

getObject

public org.apache.xmlbeans.XmlObject getObject()
Returns the body of the SOAP request converted to the native object (POJO or XmlObject or DOMish tree etc) if available or null if the body was not parsed


handleBody

protected void handleBody(org.codehaus.xfire.MessageContext context,
                          org.apache.xmlbeans.XmlObject body)
                   throws java.lang.Exception
java.lang.Exception


Copyright © 2004 Codehaus. All Rights Reserved.