com.raritantechnologies.webServices
Class ResultFormatterServiceMapper

java.lang.Object
  extended bycom.raritantechnologies.webServices.WebServiceMapper
      extended bycom.raritantechnologies.webServices.ResultFormatterServiceMapper
All Implemented Interfaces:
IConfigurable

public class ResultFormatterServiceMapper
extends WebServiceMapper

Maps a FormatResult or FormatResults SOAP method to an IFieldFormatter and returns the formatted IResult or IResultSet respectively.

XML Configuration Template:
   <WebServiceMap methodNames="FormatResult,FormatResultSet"
                     mapperClass="com.raritantechnologies.webServices.ResultFormatterServiceMapper" >

     <!-- Transforms the request body to an IResult or an IResultSet depending on the method " >
     <XMLResultProcessor>

     </XMLResultProcessor>

     <!-- One or more FieldFormatter Elements -->
     <FieldFormatter class="[ class of com.raritantechnologies.searchApp.IFieldFormatter ]" >

     </FieldFormatter>

     <!-- Optional IXMLResultRenderer (if None, returns XML in native getXML format ) -->
     <XMLResultRenderer class="[ class of com.raritantechnologies.xml.IXMLResultRenderer ]" >

     </XMLResultRenderer>

   </WebServiceMap>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
ResultFormatterServiceMapper()
           
 
Method Summary
 void executeService(SOAPEnvelope req, SOAPEnvelope res)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class com.raritantechnologies.webServices.WebServiceMapper
executeService, getCharacterEncoding, getRequestParam, setCharacterEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultFormatterServiceMapper

public ResultFormatterServiceMapper()
Method Detail

executeService

public void executeService(SOAPEnvelope req,
                           SOAPEnvelope res)
Specified by:
executeService in class WebServiceMapper

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable
Specified by:
initialize in class WebServiceMapper