More adjustments to files after paper evaluation
[iot2.git] / iotjava / iotruntime / slave / IoTDeviceAddress.java
index 8a6455b9637013a4011e93d6cec1db1535c3e5b7..5883b6801f9b00be07943ab556472596e021c3a9 100644 (file)
@@ -150,4 +150,17 @@ public final class IoTDeviceAddress extends IoTAddress {
                return "http://" + inetAddress.getHostAddress() + ":" + iDstPort + strURLComplete;\r
 \r
        }\r
+       \r
+       /**\r
+        * getURL() method\r
+        *\r
+        * @return  String\r
+        */\r
+       public String getURL(String strURLComplete, String strUser, String strPassword) {\r
+\r
+               //e.g. http:// + inetAddress.getHostAddress() + strURLComplete\r
+               //     http://192.168.2.254/cgi-bin/mjpg/video.cgi?\r
+               return "http://" + strUser + ":" + strPassword + "@" + inetAddress.getHostAddress() + ":" + iDstPort + strURLComplete;\r
+\r
+       }\r
 }\r