Commit 704caa32 authored by Dele Olajide's avatar Dele Olajide Committed by dele

Jitsi Videobridge plugin - Implemented offer and expire rayo commands

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13856 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1f099ed5
......@@ -13,6 +13,7 @@
<script src="js/strophe-openfire.js"></script>
<script src="js/main.js"></script>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="stylesheet" href="font-awesome-4.0.3/css/font-awesome.css">
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/main.css" />
......
package com.rayo.core.verb;
import org.xmpp.packet.*;
public class ColibriExpireCommand extends AbstractVerbCommand {
private JID muc;
public ColibriExpireCommand(JID muc)
{
this.muc = muc;
}
public JID getMuc() {
return muc;
}
public void setMuc(JID muc) {
this.muc = muc;
}
}
package com.rayo.core.verb;
import org.xmpp.packet.*;
public class ColibriOfferCommand extends AbstractVerbCommand {
private JID muc;
public ColibriOfferCommand(JID muc)
{
this.muc = muc;
}
public JID getMuc() {
return muc;
}
public void setMuc(JID muc) {
this.muc = muc;
}
}
......@@ -22,6 +22,7 @@ import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.Namespace;
import org.dom4j.QName;
import org.xmpp.packet.*;
import com.rayo.core.verb.*;
......@@ -52,6 +53,12 @@ public class ColibriProvider extends BaseProvider {
} else if ("unregister".equals(action)) {
command = new UnRegisterCommand();
} else if ("offer".equals(action)) {
command = new ColibriOfferCommand(new JID(element.attributeValue("muc")));
} else if ("expire".equals(action)) {
command = new ColibriExpireCommand(new JID(element.attributeValue("muc")));
}
return command;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment