Author: eschwert
Date: Fri Mar 2 16:14:46 2012
New Revision: 1296274
URL: http://svn.apache.org/viewvc?rev=1296274&view=rev
Log:
OPENMEETINGS-60 Replaced hard coded URL with configuration data
Modified:
incubator/openmeetings/branches/jira-plugin/src/main/java/org/openmeetings/jira/plugin/gateway/OmGateway.java
Modified:
incubator/openmeetings/branches/jira-plugin/src/main/java/org/openmeetings/jira/plugin/gateway/OmGateway.java
URL:
http://svn.apache.org/viewvc/incubator/openmeetings/branches/jira-plugin/src/main/java/org/openmeetings/jira/plugin/gateway/OmGateway.java?rev=1296274&r1=1296273&r2=1296274&view=diff
==============================================================================
---
incubator/openmeetings/branches/jira-plugin/src/main/java/org/openmeetings/jira/plugin/gateway/OmGateway.java
(original)
+++
incubator/openmeetings/branches/jira-plugin/src/main/java/org/openmeetings/jira/plugin/gateway/OmGateway.java
Fri Mar 2 16:14:46 2012
@@ -76,9 +76,13 @@ public class OmGateway {
Long roomType,
String externalRoomType
) throws Exception{
+
+ String url = (String)omPluginSettings.getSomeInfo("url");
+ String port = (String)omPluginSettings.getSomeInfo("port");
+
String roomId ="";
- String restURL =
"http://localhost:5080/openmeetings/services/RoomService/addRoomWithModerationExternalTypeAndTopBarOption?"
+
+ String restURL =
"http://"+url+":"+port+"/openmeetings/services/RoomService/addRoomWithModerationExternalTypeAndTopBarOption?"
+
"SID="+this.getSessionId()+
"&name="+name+
"&roomtypes_id="+roomType.toString()+
@@ -111,9 +115,11 @@ public class OmGateway {
Long roomId
) throws Exception{
+ String url = (String)omPluginSettings.getSomeInfo("url");
+ String port = (String)omPluginSettings.getSomeInfo("port");
String updateRoomId = "";
- String restURL =
"http://localhost:5080/openmeetings/services/RoomService/updateRoomWithModerationAndQuestions?"
+
+ String restURL =
"http://"+url+":"+port+"/openmeetings/services/RoomService/updateRoomWithModerationAndQuestions?"
+
"SID="+this.getSessionId()+
"&room_id="+roomId.toString()+
"&name="+roomname.toString()+
@@ -148,9 +154,11 @@ public class OmGateway {
String externalUserType , Long room_id , int
becomeModeratorAsInt , int showAudioVideoTestAsInt )
throws Exception
{
+ String url = (String)omPluginSettings.getSomeInfo("url");
+ String port = (String)omPluginSettings.getSomeInfo("port");
String roomHash = null;
- String restURL =
"http://localhost:5080/openmeetings/services/UserService/setUserObjectAndGenerateRoomHash?"
+
+ String restURL =
"http://"+url+":"+port+"/openmeetings/services/UserService/setUserObjectAndGenerateRoomHash?"
+
"SID="+this.getSessionId()+
"&username="+username+
"&firstname="+firstname+