org.codehaus.activesoap.handler.xmlbeans
Class XMLBeansInvokeMethodHandler

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

public class XMLBeansInvokeMethodHandler
extends XMLBeansHandler

Version:
$Revision: 1.3 $

Constructor Summary
XMLBeansInvokeMethodHandler(Class serviceClass, Method method)
           
XMLBeansInvokeMethodHandler(Class serviceClass, Object instance, Method method)
           
XMLBeansInvokeMethodHandler(Object instance, Method method)
           
 
Method Summary
protected  Object createService(MessageExchange exchange)
          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

XMLBeansInvokeMethodHandler

public XMLBeansInvokeMethodHandler(Class serviceClass,
                                   Method method)

XMLBeansInvokeMethodHandler

public XMLBeansInvokeMethodHandler(Object instance,
                                   Method method)

XMLBeansInvokeMethodHandler

public XMLBeansInvokeMethodHandler(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(MessageExchange exchange)
                        throws Exception
Factory method to create a new instance temporary instance of the service

Parameters:
exchange -
Returns:
Throws:
Exception


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