Example usage for org.dom4j QName QName

List of usage examples for org.dom4j QName QName

Introduction

In this page you can find the example usage for org.dom4j QName QName.

Prototype

public QName(String name, Namespace namespace) 

Source Link

Usage

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createAddSourceEvent(AddSourceEvent event, Document document) {
    Element root = document.addElement(new QName("addsource", NAMESPACE));
    root.addAttribute("muc", event.getMuc().toString());
    root.addAttribute("videobridge", event.getMuc().getNode());
    root.addAttribute("nickname", event.getNickname());
    root.addAttribute("participant", event.getParticipant().toString());
    root.add(event.getConference().createCopy());
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createRemoveSourceEvent(RemoveSourceEvent event, Document document) {
    Element root = document.addElement(new QName("removesource", NAMESPACE));
    root.addAttribute("muc", event.getMuc().toString());
    root.addAttribute("videobridge", event.getMuc().getNode());
    root.addAttribute("nickname", event.getNickname());
    root.addAttribute("participant", event.getParticipant().toString());
    root.addAttribute("active", event.isActive() ? "true" : "false");
    root.add(event.getConference().createCopy());
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createJoinBridgeEvent(JoinBridgeEvent joined, Document document) {
    Element root = document.addElement(new QName("joined", NAMESPACE));
    root.addAttribute("mixer-name", joined.getMixer());
    root.addAttribute("nickname", joined.getNickname());
    root.addAttribute("participant", joined.getParticipant().toString());
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createLeaveBridgeEvent(LeaveBridgeEvent unjoined, Document document) {
    Element root = document.addElement(new QName("unjoined", NAMESPACE));
    root.addAttribute("mixer-name", unjoined.getMixer());
    root.addAttribute("nickname", unjoined.getNickname());
    root.addAttribute("participant", unjoined.getParticipant().toString());
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createMutedEvent(MutedEvent muted, Document document) {
    document.addElement(new QName("onmute", NAMESPACE));
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createUnmutedEvent(UnmutedEvent unmuted, Document document) {
    document.addElement(new QName("offmute", NAMESPACE));
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createInviteAcceptedEvent(InviteAcceptedEvent accepted, Document document) {
    Element root = document.addElement(new QName("inviteaccepted", NAMESPACE));
    root.addAttribute("callid", accepted.getCallId());
}

From source file:com.rayo.core.xml.providers.ColibriProvider.java

License:Apache License

private void createInviteCompletedEvent(InviteCompletedEvent completed, Document document) {
    Element root = document.addElement(new QName("invitecompleted", NAMESPACE));
    root.addAttribute("callid", completed.getCallId());
}

From source file:com.rayo.core.xml.providers.HandsetProvider.java

License:Apache License

private void createOffHookCommand(OffHookCommand command, Document document) throws Exception {
    Handset handset = command.getHandset();

    Element root = document.addElement(new QName("offhook", NAMESPACE));
    root.addAttribute("cryptoSuite", handset.cryptoSuite);
    root.addAttribute("localCrypto", handset.localCrypto);
    root.addAttribute("remoteCrypto", handset.cryptoSuite);
    root.addAttribute("codec", handset.codec);
    root.addAttribute("stereo", handset.stereo);
    root.addAttribute("mixer", handset.mixer);
}

From source file:com.rayo.core.xml.providers.HandsetProvider.java

License:Apache License

private void createOnHookCommand(OnHookCommand command, Document document) throws Exception {
    document.addElement(new QName("onhook", NAMESPACE));
}