|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.classifier.ClassifierWebServiceClient
Uses the ClassifierWebService to add classification metadata to an
IResult object.
<FieldFormatter class="com.raritantechnologies.classifier.ClassifierWebServiceClient"
targetURI="[ SOAP source ]"
resultXMLField="[ optional field in source result that has XML data to be classified ]"
nestedClassificationField="[ optional field that gets nested classifier results ]" >
<Fields>
<!-- One or more Field elements: -->
<Field classifierField="[ field in classifier result ]" fieldID="[ field in formatted result output ]"
multiple="[true|false( default ) ]" />
</Fields>
</FieldFormatter>
Creates the following SOAP request format:
| Field Summary |
| Fields inherited from interface com.raritantechnologies.searchApp.IFieldFormatter |
TEMPLATE |
| Fields inherited from interface com.raritantechnologies.searchApp.IResultSetFilter |
TEMPLATE |
| Constructor Summary | |
ClassifierWebServiceClient()
|
|
| Method Summary | |
void |
dataComplete()
Data feed is complete. |
IResultSet |
filterResultSet(java.lang.String sessionID,
IResultSet data)
Filters the IResultSet by adding classification fields. |
java.lang.String |
formatField(java.lang.String fieldVal)
Reformats a field value. |
java.lang.String |
formatField(java.lang.String sessionID,
java.lang.String fieldVal)
Reformats a field value. |
void |
formatResultField(IResult result)
Formats a result field "in place". |
void |
formatResultField(java.lang.String sessionID,
IResult result)
Formats a result field "in place", incorporating session context. |
java.lang.String |
getConfigurationXML()
|
java.lang.String |
getConfigurationXML(java.lang.String configurationTemplate)
|
java.lang.String |
getFieldName()
Returns the name of the result field that this formatter can reformat. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the formatter from configuration XML element. |
void |
initialize(java.util.Map initParams)
Dynamic initialization. |
void |
processResultSet(java.lang.String sessionID,
IResultSet data)
processes the IResultSet (somehow) |
void |
setSessionID(java.lang.String sessionID)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClassifierWebServiceClient()
| Method Detail |
public IResultSet filterResultSet(java.lang.String sessionID,
IResultSet data)
filterResultSet in interface IResultSetFilter
public void processResultSet(java.lang.String sessionID,
IResultSet data)
IResultSetProcessor
processResultSet in interface IResultSetProcessorpublic void formatResultField(IResult result)
IFieldFormatter
formatResultField in interface IFieldFormatterresult - The result object that is to be formatted.
public void formatResultField(java.lang.String sessionID,
IResult result)
IFieldFormatter
formatResultField in interface IFieldFormattersessionID - The session key needed to lookup any session content stored
in the session data cache.result - The result object that is to be formatted.public java.lang.String getFieldName()
IFieldFormatter
getFieldName in interface IFieldFormatter
public java.lang.String formatField(java.lang.String sessionID,
java.lang.String fieldVal)
IFieldFormatter
formatField in interface IFieldFormattersessionID - The session key needed to lookup any session content stored
in the session data cache.fieldVal - The field value to be reformatted.
public java.lang.String formatField(java.lang.String fieldVal)
IFieldFormatter
formatField in interface IFieldFormatterfieldVal - The field value to be reformatted.
public void dataComplete()
IResultSetProcessor
dataComplete in interface IResultSetProcessorpublic void setSessionID(java.lang.String sessionID)
public void initialize(java.util.Map initParams)
IResultSetProcessor
initialize in interface IResultSetProcessorpublic void initialize(org.w3c.dom.Element elem)
IFieldFormatter
initialize in interface IFieldFormatterpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IFieldFormatterpublic java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
getConfigurationXML in interface IFieldFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||