String resourceType) throws RCSException {
Log.i(LOG_TAG, "discoverResource called");
+ String addr = address.getAddress();
+
+ if(null == address){
+ Log.e(LOG_TAG, "Empty Address");
+ throw (new RCSException("Empty Address"));
+ }
+ String addr = address.getAddress();
+
+ if(null == relativeURI || "" == relativeURI){
+ Log.e(LOG_TAG, "Empty URI");
+ throw (new RCSException("Empty URI"));
+ }
+
DiscoveryType typeOfDiscovery = address.getTypeOfDiscovery();
this.discoverResource(addr, typeOfDiscovery.ordinal(), relativeURI,
resourceType, m_discoverListener);
* policy to be set
*
* {@link AutoNotifyPolicy}
+ *
*/
public void setAutoNotifyPolicy(AutoNotifyPolicy policy) {
- Log.e(LOG_TAG, "setAutoNotifyPolicy called");
+ Log.i(LOG_TAG, "setAutoNotifyPolicy called");
this.nativeSetAutoNotifyPolicy(policy.ordinal());
}
/**
* API for getting auto notify policy
*
- * @return AntoNotify policy
+ * @return AutoNotifyPolicy
*
* {@link AutoNotifyPolicy}
+ *
*/
public AutoNotifyPolicy getAutoNotifyPolicy() {
- Log.e(LOG_TAG, "getAutoNotifyPolicy called");
+ Log.i(LOG_TAG, "getAutoNotifyPolicy called");
return AutoNotifyPolicy.getAutoNotifyPolicy(this
.nativeGetAutoNotifyPolicy());
}
* policy to be set
*
* {@link SetRequestHandlerPolicy}
+ *
*/
public void setSetRequestHandlerPolicy(SetRequestHandlerPolicy policy) {
- Log.e(LOG_TAG, "setSetRequestHandlerPolicy called");
+ Log.i(LOG_TAG, "setSetRequestHandlerPolicy called");
this.nativeSetSetRequestHandlerPolicy(policy.ordinal());
}
/**
* API for getting the SetRequestHandler Policy.
*
- * @return Property of setRequesthandler
+ * @return SetRequestHandlerPolicy
*
* {@link SetRequestHandlerPolicy}
+ *
*/
public SetRequestHandlerPolicy getSetRequestHandlerPolicy() {
- Log.e(LOG_TAG, "getSetRequestHandlerPolicy called");
+ Log.i(LOG_TAG, "getSetRequestHandlerPolicy called");
return SetRequestHandlerPolicy.getSetRequestHandlerPolicy(this
.nativeGetSetRequestHandlerPolicy());
}