com.raritantechnologies.marklogic
Class MarkLogicOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.marklogic.MarkLogicOutputProcessor
All Implemented Interfaces:
IGatewayOutputProcessor

public class MarkLogicOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor

RTI GatewayOutputProcessor that pushes content to a MarkLogic XDBC Server.

Uses the Session.insertContent( Content ) method.

XML Configuration Template:
  <GatewayOutputProcessor class="com.raritantechnologies.marklogic.MarkLogicOutputProcessor" 
                             serverURI="[ complete server connection URI ]"
                             serverHost="[ host name of server ]"
                             serverPort="[ port of server ]"
                             user="[ admin user ]"
                             password="[ admin password ]"
                             contentbaseName="[ name of database to push content to ]"
                             urlField="[ field in results that contain the content url ]" >

    <XMLResultRenderer class="[ class of com.raritantechnologies.xml.IXMLResultRenderer ]" >

     </XMLResultRenderer>

  </GatewayOutputProcessor>

 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
MarkLogicOutputProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete.
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 void initialize(java.util.Map initParameters)
          Used for dynamic initialization (connection, collection name, file name, etc.)
 java.lang.String processData(IResultSet data)
          returns name of XML File created/appended.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkLogicOutputProcessor

public MarkLogicOutputProcessor()
Method Detail

processData

public java.lang.String processData(IResultSet data)
Description copied from interface: IGatewayOutputProcessor
returns name of XML File created/appended.

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Description copied from interface: IGatewayOutputProcessor
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem,
                       ISearchFieldMap sfMap)
Description copied from interface: IGatewayOutputProcessor
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor

initialize

public void initialize(java.util.Map initParameters)
Used for dynamic initialization (connection, collection name, file name, etc.)

Specified by:
initialize in interface IGatewayOutputProcessor

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IGatewayOutputProcessor