org.codehaus.activesoap.handler.xstream
Class XStreamHandler
java.lang.Object
org.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
driver
protected com.thoughtworks.xstream.io.xml.StaxDriver driver
xstream
protected com.thoughtworks.xstream.XStream xstream
XStreamHandler
public XStreamHandler()
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.