org.jboss.soa.esb.actions.soap.wise
Class SmooksMapper

java.lang.Object
  extended by org.jboss.soa.esb.actions.soap.wise.SmooksMapper
All Implemented Interfaces:
it.javalinux.wise.core.mapper.WiseMapper

public class SmooksMapper
extends java.lang.Object
implements it.javalinux.wise.core.mapper.WiseMapper

A WiseMapper based on smooks, copied from the wise codebase

Author:
stefano.maestri@javalinux.it

Constructor Summary
SmooksMapper(java.lang.String smooksResource)
          Create this mapper using passed resource
SmooksMapper(java.lang.String smooksResource, java.lang.String smooksReport)
          Create this mapper using passed resource and passed smooks html report to generate.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> applyMapping(java.lang.Object originalObjects)
          apply this mapping to original object
 java.lang.String getSmooksReport()
           
 java.lang.String getSmooksResource()
           
 void setSmooksReport(java.lang.String smooksReport)
           
 void setSmooksResource(java.lang.String smooksResource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmooksMapper

public SmooksMapper(java.lang.String smooksResource)
             throws java.lang.IllegalArgumentException,
                    java.io.IOException,
                    org.xml.sax.SAXException,
                    LifecycleResourceException
Create this mapper using passed resource

Parameters:
smooksResource - URI of smooks resource to use
Throws:
org.xml.sax.SAXException
java.io.IOException
java.lang.IllegalArgumentException
LifecycleResourceException

SmooksMapper

public SmooksMapper(java.lang.String smooksResource,
                    java.lang.String smooksReport)
             throws java.io.IOException,
                    java.lang.IllegalArgumentException,
                    org.xml.sax.SAXException,
                    LifecycleResourceException
Create this mapper using passed resource and passed smooks html report to generate. A SmooksMapper created with this constructor will create an html smooks report useful for debug.

Parameters:
smooksResource - URI of smooks resource to use
smooksReport - the URI of smooks html report to generate.
Throws:
org.xml.sax.SAXException
java.lang.IllegalArgumentException
java.io.IOException
LifecycleResourceException
Method Detail

applyMapping

public java.util.Map<java.lang.String,java.lang.Object> applyMapping(java.lang.Object originalObjects)
                                                              throws java.lang.Exception
apply this mapping to original object

Specified by:
applyMapping in interface it.javalinux.wise.core.mapper.WiseMapper
Parameters:
originalObjects -
Returns:
Map returned is typically used to invoke webservice operations. To do this, beanids defined in smooks config (and used here as Map's keys) have to be the parameters names as defined in wsdl/wsconsume generated classes
Throws:
java.lang.Exception

getSmooksResource

public java.lang.String getSmooksResource()

setSmooksResource

public void setSmooksResource(java.lang.String smooksResource)

getSmooksReport

public java.lang.String getSmooksReport()

setSmooksReport

public void setSmooksReport(java.lang.String smooksReport)