throw new InvalidArgsException(
SimulatorResult.SIMULATOR_INVALID_PARAM.ordinal(),
"Parameter passed in invalid");
- this.get(null, queryParamsMap, onGetListener);
+ this.nativeGet(null, queryParamsMap, onGetListener);
}
/**
public void get(String resourceInterface,
Map<String, String> queryParamsMap, IGetListener onGetListener)
throws InvalidArgsException, NoSupportException, SimulatorException {
- if (resourceInterface.isEmpty() || null == onGetListener)
+ if (null == resourceInterface || resourceInterface.isEmpty() || null == onGetListener)
throw new InvalidArgsException(
SimulatorResult.SIMULATOR_INVALID_PARAM.ordinal(),
"Parameter passed in invalid");
- this.get(resourceInterface, queryParamsMap, onGetListener);
+ this.nativeGet(resourceInterface, queryParamsMap, onGetListener);
}
private native void nativeGet(String resourceInterface,
throw new InvalidArgsException(
SimulatorResult.SIMULATOR_INVALID_PARAM.ordinal(),
"Parameter passed in invalid");
- this.put(null, representation, queryParamsMap, onPutListener);
+ this.nativePut(null, representation, queryParamsMap, onPutListener);
}
/**
SimulatorResourceModel representation,
Map<String, String> queryParamsMap, IPutListener onPutListener)
throws InvalidArgsException, NoSupportException, SimulatorException {
- if (resourceInterface.isEmpty() || null == representation || null == onPutListener)
+ if (null == resourceInterface || resourceInterface.isEmpty() ||
+ null == representation || null == onPutListener)
throw new InvalidArgsException(
SimulatorResult.SIMULATOR_INVALID_PARAM.ordinal(),
"Parameter passed in invalid");
- this.put(resourceInterface, representation, queryParamsMap, onPutListener);
+ this.nativePut(resourceInterface, representation, queryParamsMap, onPutListener);
}
private native void nativePut(String resourceInterface,
throw new InvalidArgsException(
SimulatorResult.SIMULATOR_INVALID_PARAM.ordinal(),
"Parameter passed in invalid");
- this.post(null, representation, queryParamsMap, onPostListener);
+ this.nativePost(null, representation, queryParamsMap, onPostListener);
}
/**
SimulatorResourceModel representation,
Map<String, String> queryParamsMap, IPostListener onPostListener)
throws InvalidArgsException, NoSupportException, SimulatorException {
- if (resourceInterface.isEmpty() || null == representation || null == onPostListener)
+ if (null == resourceInterface || resourceInterface.isEmpty() ||
+ null == representation || null == onPostListener)
throw new InvalidArgsException(
SimulatorResult.SIMULATOR_INVALID_PARAM.ordinal(),
"Parameter passed in invalid");
- this.post(resourceInterface, representation, queryParamsMap, onPostListener);
+ this.nativePost(resourceInterface, representation, queryParamsMap, onPostListener);
}
private native void nativePost(String resourceInterface,