org.logicblaze.lingo.jms.marshall
Class XStreamMarshaller
java.lang.Object
org.logicblaze.lingo.jms.marshall.DefaultMarshaller
org.logicblaze.lingo.jms.marshall.XStreamMarshaller
- All Implemented Interfaces:
- Marshaller
- public class XStreamMarshaller
- extends DefaultMarshaller
Uses XStream to marshall requests and responses into and out of messages.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XStreamMarshaller
public XStreamMarshaller()
createRequestMessage
public Message createRequestMessage(Requestor requestor,
LingoInvocation invocation)
throws JMSException
- Description copied from interface:
Marshaller
- Creates the request message
- Specified by:
createRequestMessage
in interface Marshaller
- Overrides:
createRequestMessage
in class DefaultMarshaller
- Throws:
JMSException
extractInvocationResult
public org.springframework.remoting.support.RemoteInvocationResult extractInvocationResult(Message message)
throws JMSException
- Description copied from interface:
Marshaller
- Extracts the invocation result from the response message
- Specified by:
extractInvocationResult
in interface Marshaller
- Overrides:
extractInvocationResult
in class DefaultMarshaller
- Throws:
JMSException
readRemoteInvocation
public org.springframework.remoting.support.RemoteInvocation readRemoteInvocation(Message message)
throws JMSException
- Description copied from interface:
Marshaller
- Read a RemoteInvocation from the given JMS message
- Specified by:
readRemoteInvocation
in interface Marshaller
- Overrides:
readRemoteInvocation
in class DefaultMarshaller
- Throws:
JMSException
getXStream
public com.thoughtworks.xstream.XStream getXStream()
setXStream
public void setXStream(com.thoughtworks.xstream.XStream xStream)
createXStream
protected com.thoughtworks.xstream.XStream createXStream()
fromXML
protected Object fromXML(String xml)
toXML
protected String toXML(Object object)
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.