org.codehaus.activesoap.handler.xmlbeans
Class XMLBeanInvokeMethodHandler

java.lang.Object
  extended byorg.codehaus.activesoap.handler.xmlbeans.XMLBeansHandler
      extended byorg.codehaus.activesoap.handler.xmlbeans.XMLBeanInvokeMethodHandler
All Implemented Interfaces:
Handler

public class XMLBeanInvokeMethodHandler
extends XMLBeansHandler

Version:
$Revision: 1.4 $

Constructor Summary
XMLBeanInvokeMethodHandler(Class serviceClass, Method method)
           
XMLBeanInvokeMethodHandler(Class serviceClass, Object instance, Method method)
           
XMLBeanInvokeMethodHandler(Object instance, Method method)
           
 
Method Summary
protected  Object createService()
          Factory method to create a new instance temporary instance of the service
protected  void handleBody(MessageExchange exchange, org.apache.xmlbeans.XmlObject body, XMLStreamWriter out)
           
protected  void invokeService(org.apache.xmlbeans.XmlObject body, MessageExchange exchange, XMLStreamWriter out, Object serviceInstance)
          Invokes the service on the given serviceInstance
protected  void outputServiceResult(MessageExchange exchange, XMLStreamWriter out, org.apache.xmlbeans.XmlObject request, Object response)
          Handles the result of a service invocation which is non null and is not an XMLBeans object.
 
Methods inherited from class org.codehaus.activesoap.handler.xmlbeans.XMLBeansHandler
getObject, invoke, reply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBeanInvokeMethodHandler

public XMLBeanInvokeMethodHandler(Class serviceClass,
                                  Method method)

XMLBeanInvokeMethodHandler

public XMLBeanInvokeMethodHandler(Object instance,
                                  Method method)

XMLBeanInvokeMethodHandler

public XMLBeanInvokeMethodHandler(Class serviceClass,
                                  Object instance,
                                  Method method)
Method Detail

handleBody

protected void handleBody(MessageExchange exchange,
                          org.apache.xmlbeans.XmlObject body,
                          XMLStreamWriter out)
                   throws Exception
Overrides:
handleBody in class XMLBeansHandler
Throws:
Exception

invokeService

protected void invokeService(org.apache.xmlbeans.XmlObject body,
                             MessageExchange exchange,
                             XMLStreamWriter out,
                             Object serviceInstance)
                      throws Exception
Invokes the service on the given serviceInstance

Throws:
Exception

outputServiceResult

protected void outputServiceResult(MessageExchange exchange,
                                   XMLStreamWriter out,
                                   org.apache.xmlbeans.XmlObject request,
                                   Object response)
                            throws XMLStreamException
Handles the result of a service invocation which is non null and is not an XMLBeans object. The default implementation just outputs the String value

Throws:
XMLStreamException

createService

protected Object createService()
                        throws Exception
Factory method to create a new instance temporary instance of the service

Returns:
Throws:
Exception


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