com.raritantechnologies.webServices
Class QueryTranslatorWebServiceMapper
java.lang.Object
com.raritantechnologies.webServices.WebServiceMapper
com.raritantechnologies.webServices.QueryTranslatorWebServiceMapper
- All Implemented Interfaces:
- IConfigurable
- public class QueryTranslatorWebServiceMapper
- extends WebServiceMapper
Uses an IStringFilter to execute a WebServices request by filtering
the incoming XML.
XML Configuration Template:
<WebServiceMap methodName="[ name of tag that maps to this Mapper ]"
mapperClass="com.raritantechnologies.webServices.QueryTranslatorWebServiceMapper"
inputIsRQL="[ true if input is in RQLMap format - false otherwise(default) ]"
topicName="[ name of returned topic ]" >
<!-- Use a WebServiceInputMapper to translate the SOAP request to an RTI OrderedMap -->
<InputMap inputMapperClass="[ implementation of com.raritantechnologies.webServices.IWebServiceInputMapper ]" >
</inputMap>
<!-- For Fielded queries, can use an RQLMapBuilder if input is NOT in RQL format -->
<RQLMapBuilder>
</RQLMapBuilder>
<!-- Alternately - can use an ITopicParser to convert a complex query string into a Topic Parse Tree -->
<TopicParser class="[ class of com.raritantechnologies.rql.topic.ITopicParser ]"
queryRequestField="[ the request field that contains the complex query string ]" >
</TopicParser>
<TopicRenderer class="[ class of com.raritantechnologies.rql.topic.ITopicRenderer ]" >
<TopicRenderer>
<!-- Template for XML output: use {QUERY} as a placeholder for the returned query string -->
<XMLOutputTemplate>
<![CDATA[
]]>
</XMLOutputTemplate>
</WebServiceMap>
|
Method Summary |
void |
executeService(SOAPEnvelope soapRequest,
SOAPEnvelope soapResponse)
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryTranslatorWebServiceMapper
public QueryTranslatorWebServiceMapper()
executeService
public void executeService(SOAPEnvelope soapRequest,
SOAPEnvelope soapResponse)
- 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