public abstract class AbstractReportResponseHitsPostProcessor extends AbstractReportResponsePostProcessor
IReportPostProcessor
that exposes auxiliary methods for dealing with non-aggregated results.Constructor and Description |
---|
AbstractReportResponseHitsPostProcessor() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
getFieldValue(String name,
org.json.JSONObject monitorField)
Returns the field value of the given field.
|
protected org.json.JSONArray |
getHitsArray(org.json.JSONObject responseJSON)
Returns the hit JSON array.
|
protected org.json.JSONObject |
getMonitorFieldJSON(org.json.JSONObject hitObject)
Returns the monitor field JSON object.
|
org.json.JSONObject |
process(org.json.JSONObject responseJSON,
Source<? extends ISourceField> source)
Process the given response JSON.
|
protected abstract void |
processHit(org.json.JSONObject monitorField)
Process a given hit of the
hit array . |
getSessionConfig, getTransaction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public AbstractReportResponseHitsPostProcessor()
protected org.json.JSONObject getMonitorFieldJSON(org.json.JSONObject hitObject)
hitObject
- the hit object.protected org.json.JSONArray getHitsArray(org.json.JSONObject responseJSON)
responseJSON
- the response JSON object.public org.json.JSONObject process(org.json.JSONObject responseJSON, Source<? extends ISourceField> source) throws org.json.JSONException, PortalException
IReportPostProcessor
responseJSON
- the response JSON.source
- the source.org.json.JSONException
PortalException
protected <T> T getFieldValue(String name, org.json.JSONObject monitorField) throws org.json.JSONException
name
- the desired field's name.monitorField
- the monitor field.org.json.JSONException
protected abstract void processHit(org.json.JSONObject monitorField) throws org.json.JSONException, PortalException
hit array
.monitorField
- the monitor field of the given hit.org.json.JSONException
PortalException
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.