org.codehaus.activesoap.handler.xstream
Class XStreamHandler

java.lang.Object
  extended byorg.codehaus.activesoap.handler.xstream.XStreamHandler
All Implemented Interfaces:
Handler
Direct Known Subclasses:
XStreamInvokeMethodHandler

public class XStreamHandler
extends Object
implements Handler

Version:
$Revision: 1.5 $

Field Summary
protected  com.thoughtworks.xstream.io.xml.StaxDriver driver
           
protected  com.thoughtworks.xstream.XStream xstream
           
 
Constructor Summary
XStreamHandler()
           
 
Method Summary
 com.thoughtworks.xstream.io.xml.StaxDriver getDriver()
           
 Object getObject()
          Returns the body of the SOAP request converted to the native POJO
 com.thoughtworks.xstream.XStream getXstream()
           
protected  void handleBody(MessageExchange exchange, Object 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, Object 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
 

Field Detail

driver

protected com.thoughtworks.xstream.io.xml.StaxDriver driver

xstream

protected com.thoughtworks.xstream.XStream xstream
Constructor Detail

XStreamHandler

public XStreamHandler()
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,
                  Object reply,
                  XMLStreamWriter out)
           throws Exception
Sends the reply object to the output body

Throws:
Exception

getObject

public Object getObject()
Returns the body of the SOAP request converted to the native POJO


getDriver

public com.thoughtworks.xstream.io.xml.StaxDriver getDriver()

getXstream

public com.thoughtworks.xstream.XStream getXstream()

handleBody

protected void handleBody(MessageExchange exchange,
                          Object body,
                          XMLStreamWriter out)
                   throws Exception
Throws:
Exception


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