com.raritantechnologies.webServices
Class ContentHandlerMapper

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

public class ContentHandlerMapper
extends WebServiceMapper

Exposes an RTI IDocumentContentHandler as a Web Service - enabling document content to be retrieved via SOAP.

Message should contains data to determine a document URI: This information was sent to the web service client in the ContentMapping schema: it includes the search source and any name=value result parameters needed by the content handler to uniquely define a source.

XML Configuration Template:
     <WebServiceMap methodNames="ContentFormatRequest,GetContentRequest"
                       mapperClass="com.raritantechnologies.webServices.ContentHandlerMapper"
                       contentSchemaMethod="ContentFormatRequest"
                       getContentMethod="GetContentRequest"
                       defaultContentType="[ contentType to use if none returned by source ]" >

       <!-- One or More DocumentHandler tags -->
       <DocumentHandler sourceNames="[ name(s) of source(s) mapped to this content mapper ]"
                           useDynamicMethod="[ true|false(default) - use contentHandler getRequestParameters( ) method if true ]" >

          <ContentRequestMapper class="[ class of com.raritantechnologies.webServices.IDocumentContentMapper ]" >

          </ContentRequestMapper>

          <ContentHandler class="[ class of com.raritantechnologies.quickstart.userInterface.IDocumentContentHandler ]" >

          </ContentHandler>

       </DocumentHandler>

     </WebServiceMap>
  

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
ContentHandlerMapper()
           
 
Method Summary
 void executeService(SOAPEnvelope soapReq, SOAPEnvelope soapResp)
           
 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

ContentHandlerMapper

public ContentHandlerMapper()
Method Detail

executeService

public void executeService(SOAPEnvelope soapReq,
                           SOAPEnvelope soapResp)
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