public interface J4pResponseExtractor
J4pResponse is created.
This is especially useful for advanced error handling e.g. for bulk requests.| Modifier and Type | Method and Description |
|---|---|
<RESP extends J4pResponse<REQ>,REQ extends J4pRequest> |
extract(REQ request,
org.json.simple.JSONObject jsonResp)
Extract a response object for the given request and the returned JSON structure
|
<RESP extends J4pResponse<REQ>,REQ extends J4pRequest> RESP extract(REQ request, org.json.simple.JSONObject jsonResp) throws J4pRemoteException
RESP - response typREQ - request typerequest - the original requestjsonResp - the response as obtained from the agentJ4pRemoteException - if the response is in an error state this exception should be thrown.Copyright © 2016. All rights reserved.