public void run(){
this.makeCall();
}
public void makeCall(){
BaselineSyncClient client = wrapper.getClient();
ExecutionContext ctx = wrapper.getCtx();
if("testSimpleGet".equals(methodToExecute)){
try{
SimpleResponse response = client.testSimpleGet(ctx, "foo");
this.actualResponse = new JSONObject(response.toString());
} catch(SimpleException e){
this.actualResponse = null;
this.exceptionResponse = e;
} catch(JSONException j){
this.actualResponse = null;
this.exceptionResponse = j;
}
}
else if("i32Operation".equals(methodToExecute)){
BodyParamI32Object body = new BodyParamI32Object();
body.setBodyParameter(I32_BODY);
try {
I32OperationResponseObject response = client.i32Operation(ctx, I32_HEADER, I32_QUERY, body);
this.actualResponse = new JSONObject(response.toString());
} catch(SimpleException e) {
this.actualResponse = null;
this.exceptionResponse = e;
} catch(JSONException j){
this.actualResponse = null;
this.exceptionResponse = j;
}
}
else if("boolOperation".equals(methodToExecute)){
BodyParamBoolObject body = new BodyParamBoolObject();
body.setBodyParameter(true);
try {
BoolOperationResponseObject response = client.boolOperation(ctx, false, true, body);
this.actualResponse = new JSONObject(response.toString());
} catch(SimpleException e) {
this.actualResponse = null;
this.exceptionResponse = e;
} catch(JSONException j){