Class DISXMLConnectionHandler
java.lang.Object
org.web3d.vrml.renderer.common.input.dis.DISXMLConnectionHandler
- All Implemented Interfaces:
org.jivesoftware.smack.PacketListener
public class DISXMLConnectionHandler
extends Object
implements org.jivesoftware.smack.PacketListener
DIS Protocol Handler for XMPP packets containing ESPDUs
- Version:
- $Id: DISXMLConnectionHandler.java,v 1.8 2009-09-26 05:54:15 tdnorbra Exp $
- Author:
- Yumetech, Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionDISXMLConnectionHandler
(String group, int port, String xUsername, String xPassword, String[] xAuthServer, String xMucServer, String xMucRoom, String id) Default constructorDISXMLConnectionHandler
(Map<DISId, org.web3d.vrml.renderer.common.input.dis.NodeMapEntry> nodeMap, org.web3d.vrml.renderer.common.input.dis.LinkedList liveList, List<VRMLDISNodeType> managerList, Set<DISId> notifiedSet, String group, int port, String xUsername, String xPassword, String[] xAuthServer, String xMucServer, String xMucRoom) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processPacket
(org.jivesoftware.smack.packet.Packet packet) void
write
(ByteBuffer pdu) Write a PDU's contents to the default XMPP destination.
-
Constructor Details
-
DISXMLConnectionHandler
public DISXMLConnectionHandler(Map<DISId, org.web3d.vrml.renderer.common.input.dis.NodeMapEntry> nodeMap, org.web3d.vrml.renderer.common.input.dis.LinkedList liveList, List<VRMLDISNodeType> managerList, Set<DISId> notifiedSet, String group, int port, String xUsername, String xPassword, String[] xAuthServer, String xMucServer, String xMucRoom) - Parameters:
nodeMap
-liveList
-managerList
-notifiedSet
-group
-port
-xUsername
-xPassword
-xAuthServer
-xMucServer
-xMucRoom
-
-
DISXMLConnectionHandler
public DISXMLConnectionHandler(String group, int port, String xUsername, String xPassword, String[] xAuthServer, String xMucServer, String xMucRoom, String id) Default constructor- Parameters:
group
- a group nameport
- to connect to i.e. 5222xUsername
- XMPP usernamexPassword
- XMPP passwordxAuthServer
- XMPP serverxMucServer
- multi-user serverxMucRoom
- multi-user chat roomid
- unique XMPP ID
-
-
Method Details
-
processPacket
public void processPacket(org.jivesoftware.smack.packet.Packet packet) - Specified by:
processPacket
in interfaceorg.jivesoftware.smack.PacketListener
-
write
Write a PDU's contents to the default XMPP destination. It is up to the user to clear the ByteBuffer if it is to be reused.- Parameters:
pdu
- the DIS PDU data to be written
-