org.codehaus.activesoap.handler.xmlbeans
Class XMLBeansHandler

java.lang.Object
  extended byorg.codehaus.activesoap.handler.xmlbeans.XMLBeansHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
XMLBeanInvokeMethodHandler, XMLBeansInvokeMethodHandler

public class XMLBeansHandler
extends Object
implements Handler

Processes an XML document using XMLBeans

Version:
$Revision: 1.4 $

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(MessageExchange exchange, org.apache.xmlbeans.XmlObject body, XMLStreamWriter out)
           
 void invoke(MessageExchange exchange)
          Handles the processing of an XML message which is typically a SOAP body element or header element but could be an entire REST XML service.
 void reply(MessageExchange exchange, org.apache.xmlbeans.XmlObject reply, XMLStreamWriter out)
          Sends the reply object to the output body
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBeansHandler

public XMLBeansHandler()
Method Detail

invoke

public void invoke(MessageExchange exchange)
            throws Exception
Description copied from interface: Handler
Handles the processing of an XML message which is typically a SOAP body element or header element but could be an entire REST XML service.

Specified by:
invoke in interface Handler
Parameters:
exchange - is the message exchange which can be used to accesss message-specific attributes to communicate between different handlers in a loose coupled way or to access service specific details such as the SOAP roles and encodings etc.
Throws:
Exception

reply

public void reply(MessageExchange exchange,
                  org.apache.xmlbeans.XmlObject reply,
                  XMLStreamWriter out)
           throws Exception
Sends the reply object to the output body

Throws:
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(MessageExchange exchange,
                          org.apache.xmlbeans.XmlObject body,
                          XMLStreamWriter out)
                   throws Exception
Throws:
Exception


Copyright © 2004-2005 LogicBlaze, Inc.. All Rights Reserved.