org.logicblaze.lingo.jms.marshall
Class XStreamMarshaller

java.lang.Object
  extended byorg.logicblaze.lingo.jms.marshall.DefaultMarshaller
      extended byorg.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 $

Constructor Summary
XStreamMarshaller()
           
 
Method Summary
 Message createRequestMessage(Requestor requestor, LingoInvocation invocation)
          Creates the request message
protected  com.thoughtworks.xstream.XStream createXStream()
           
 org.springframework.remoting.support.RemoteInvocationResult extractInvocationResult(Message message)
          Extracts the invocation result from the response message
protected  Object fromXML(String xml)
           
 com.thoughtworks.xstream.XStream getXStream()
           
 org.springframework.remoting.support.RemoteInvocation readRemoteInvocation(Message message)
          Read a RemoteInvocation from the given JMS message
 void setXStream(com.thoughtworks.xstream.XStream xStream)
           
protected  String toXML(Object object)
           
 
Methods inherited from class org.logicblaze.lingo.jms.marshall.DefaultMarshaller
appendMessageHeaders, handleInvocationHeaders, handleInvocationResultHeaders, isIgnoreInvalidMessages, onInvalidClientMessage, onInvalidMessage, setIgnoreInvalidMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamMarshaller

public XStreamMarshaller()
Method Detail

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.