tigase.jaxmpp.j2se.connectors.bosh
Class BoshWorker

java.lang.Object
  extended by tigase.jaxmpp.j2se.connectors.bosh.BoshWorker
All Implemented Interfaces:
Runnable, tigase.jaxmpp.core.client.connector.BoshRequest

public abstract class BoshWorker
extends Object
implements tigase.jaxmpp.core.client.connector.BoshRequest


Constructor Summary
BoshWorker(tigase.xml.DomBuilderHandler domHandler, tigase.xml.SimpleParser parser, tigase.jaxmpp.core.client.SessionObject sessionObject, tigase.jaxmpp.core.client.xml.Element body)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getRid()
           
 int hashCode()
           
protected abstract  void onError(int responseCode, String responseData, tigase.jaxmpp.core.client.xml.Element response, Throwable caught)
           
protected abstract  void onSuccess(int responseCode, String responseData, tigase.jaxmpp.core.client.xml.Element response)
           
protected abstract  void onTerminate(int responseCode, String responseData, tigase.jaxmpp.core.client.xml.Element response)
           
 void run()
           
 void terminate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoshWorker

public BoshWorker(tigase.xml.DomBuilderHandler domHandler,
                  tigase.xml.SimpleParser parser,
                  tigase.jaxmpp.core.client.SessionObject sessionObject,
                  tigase.jaxmpp.core.client.xml.Element body)
           throws tigase.jaxmpp.core.client.xml.XMLException,
                  tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.exceptions.JaxmppException
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getRid

public String getRid()
Specified by:
getRid in interface tigase.jaxmpp.core.client.connector.BoshRequest

hashCode

public int hashCode()
Overrides:
hashCode in class Object

onError

protected abstract void onError(int responseCode,
                                String responseData,
                                tigase.jaxmpp.core.client.xml.Element response,
                                Throwable caught)
                         throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

onSuccess

protected abstract void onSuccess(int responseCode,
                                  String responseData,
                                  tigase.jaxmpp.core.client.xml.Element response)
                           throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

onTerminate

protected abstract void onTerminate(int responseCode,
                                    String responseData,
                                    tigase.jaxmpp.core.client.xml.Element response)
                             throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

run

public void run()
Specified by:
run in interface Runnable

terminate

public void terminate()
Specified by:
terminate in interface tigase.jaxmpp.core.client.connector.BoshRequest

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2012 Tigase. All Rights Reserved.