tigase.xmpp
Class XMPPIOService

java.lang.Object
  extended by tigase.net.IOService
      extended by tigase.xmpp.XMPPIOService
All Implemented Interfaces:
java.util.concurrent.Callable<IOService>
Direct Known Subclasses:
BoshIOService

public class XMPPIOService
extends IOService

Describe class XMPPIOService here. Created: Tue Feb 7 07:15:02 2006

Version:
$Rev: 1182 $
Author:
Artur Hefczyc

Field Summary
 
Fields inherited from class tigase.net.IOService
HOSTNAME_KEY, PORT_TYPE_PROP_KEY, SESSION_ID_KEY
 
Constructor Summary
XMPPIOService()
          Creates a new XMPPIOService instance.
 
Method Summary
 void addPacketToSend(Packet packet)
          Method addPacketToSend adds new data which will be processed during next run.
 java.util.Queue<Packet> getReceivedPackets()
           
 java.lang.String getXMLNS()
           
protected  void processSocketData()
          Describe processSocketData method here.
 void processWaitingPackets()
          Describe processWaitingPackets method here.
protected  int receivedPackets()
           
 void setIOServiceListener(XMPPIOServiceListener sl)
           
 void setXMLNS(java.lang.String xmlns)
           
 void stop()
          Describe stop method here.
 void writeRawData(java.lang.String data)
           
protected  void xmppStreamClosed()
           
 void xmppStreamOpen(java.lang.String data)
           
protected  void xmppStreamOpened(java.util.Map<java.lang.String,java.lang.String> attribs)
           
 
Methods inherited from class tigase.net.IOService
accept, call, connectionType, debug, debug, forceStop, getDataReceiver, getLastTransferTime, getLocalAddress, getReadCounters, getRemoteAddress, getSessionData, getSocketChannel, getUniqueId, getWriteCounters, isConnected, readCompleted, readData, setDataReceiver, setIOServiceListener, setSessionData, setSSLId, startSSL, startTLS, waitingToSend, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMPPIOService

public XMPPIOService()
Creates a new XMPPIOService instance.

Method Detail

setXMLNS

public void setXMLNS(java.lang.String xmlns)

getXMLNS

public java.lang.String getXMLNS()

setIOServiceListener

public void setIOServiceListener(XMPPIOServiceListener sl)

xmppStreamOpened

protected void xmppStreamOpened(java.util.Map<java.lang.String,java.lang.String> attribs)

xmppStreamOpen

public void xmppStreamOpen(java.lang.String data)

stop

public void stop()
Describe stop method here.

Overrides:
stop in class IOService
Throws:
java.io.IOException - if an error occurs

xmppStreamClosed

protected void xmppStreamClosed()

addPacketToSend

public void addPacketToSend(Packet packet)
Method addPacketToSend adds new data which will be processed during next run. Data are kept in proper order like in FIFO queue.

Parameters:
packet - a Packet value of data to process.

getReceivedPackets

public java.util.Queue<Packet> getReceivedPackets()

processWaitingPackets

public void processWaitingPackets()
                           throws java.io.IOException
Describe processWaitingPackets method here.

Specified by:
processWaitingPackets in class IOService
Throws:
java.io.IOException

writeRawData

public void writeRawData(java.lang.String data)
                  throws java.io.IOException
Throws:
java.io.IOException

processSocketData

protected void processSocketData()
                          throws java.io.IOException
Describe processSocketData method here.

Specified by:
processSocketData in class IOService
Throws:
java.io.IOException - if an error occurs

receivedPackets

protected int receivedPackets()
Specified by:
receivedPackets in class IOService


Copyright © 2008 Tigase. All Rights Reserved.