public void get(Map<String, String> queryParamsMap,
OnGetListener onGetListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.get1(queryParamsMap, onGetListener, qualityOfService.getValue());
}
Map<String, String> queryParamsMap,
OnGetListener onGetListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.get3(
resourceType,
resourceInterface,
Map<String, String> queryParamsMap,
OnPutListener onPutListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.put1(
ocRepresentation,
queryParamsMap,
Map<String, String> queryParamsMap,
OnPutListener onPutListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.put3(
resourceType,
resourceInterface,
Map<String, String> queryParamsMap,
OnPostListener onPostListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.post1(
ocRepresentation,
queryParamsMap,
Map<String, String> queryParamsMap,
OnPostListener onPostListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.post3(
resourceType,
resourceInterface,
*/
public void deleteResource(OnDeleteListener onDeleteListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.deleteResource1(onDeleteListener,
qualityOfService.getValue());
}
Map<String, String> queryParamsMap,
OnObserveListener onObserveListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (observeType == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "observeType cannot be null");
+ }
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.observe1(
observeType.getValue(),
queryParamsMap,
* @throws OcException
*/
public void cancelObserve(QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.cancelObserve1(qualityOfService.getValue());
}
*
* @param headerOptionList List<OcHeaderOption> where header information(header optionID and
* optionData is passed
+ * @throws OcException
*/
- public void setHeaderOptions(List<OcHeaderOption> headerOptionList) {
+ public void setHeaderOptions(List<OcHeaderOption> headerOptionList) throws OcException {
+
+ if (headerOptionList == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "headerOptionList cannot be null");
+ }
+
this.setHeaderOptions(headerOptionList.toArray(
new OcHeaderOption[headerOptionList.size()])
);
public void discoveryMQTopics(Map<String, String> queryParamsMap,
OnMQTopicFoundListener onTopicFoundListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.discoveryMQTopicsImpl(queryParamsMap, onTopicFoundListener,
qualityOfService.getValue());
}
Map<String, String> queryParamsMap,
OnMQTopicCreatedListener onTopicCreatedListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.createMQTopicImpl(ocRepresentation, uri, queryParamsMap,
onTopicCreatedListener, qualityOfService.getValue());
}
public void subscribeMQTopic(Map<String, String> queryParamsMap,
OnObserveListener onObserveListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.subscribeMQTopicImpl(queryParamsMap,
onObserveListener,
qualityOfService.getValue());
* @throws OcException
*/
public void unsubscribeMQTopic(QualityOfService qualityOfService) throws OcException{
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.unsubscribeMQTopicImpl(qualityOfService.getValue());
}
public void requestMQPublish(Map<String, String> queryParamsMap,
OnPostListener onPostListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.requestMQPublishImpl(queryParamsMap,
onPostListener,
qualityOfService.getValue());
Map<String, String> queryParamsMap,
OnPostListener onPostListener,
QualityOfService qualityOfService) throws OcException {
+
+ if (qualityOfService == null) {
+ throw new OcException(ErrorCode.INVALID_PARAM, "qualityOfService cannot be null");
+ }
+
this.publishMQTopicImpl(ocRepresentation,
queryParamsMap,
onPostListener,