tigase.jaxmpp.gwt.client.connectors
Class WebSocketConnector

java.lang.Object
  extended by tigase.jaxmpp.gwt.client.connectors.WebSocketConnector
All Implemented Interfaces:
tigase.jaxmpp.core.client.Connector

public class WebSocketConnector
extends Object
implements tigase.jaxmpp.core.client.Connector

Author:
andrzej

Nested Class Summary
 
Nested classes/interfaces inherited from interface tigase.jaxmpp.core.client.Connector
tigase.jaxmpp.core.client.Connector.ConnectorEvent, tigase.jaxmpp.core.client.Connector.State
 
Field Summary
protected  Logger log
           
 
Fields inherited from interface tigase.jaxmpp.core.client.Connector
BodyReceived, Connected, CONNECTOR_STAGE_KEY, DISABLE_KEEPALIVE_KEY, ENCRYPTED_KEY, EncryptionEstablished, Error, EXTERNAL_KEEPALIVE_KEY, SEE_OTHER_HOST_KEY, StanzaReceived, StanzaSending, StateChanged, StreamTerminated, TRUST_MANAGERS_KEY
 
Constructor Summary
WebSocketConnector(tigase.jaxmpp.core.client.observer.Observable parentObservable, tigase.jaxmpp.core.client.SessionObject sessionObject)
           
 
Method Summary
 void addListener(tigase.jaxmpp.core.client.observer.EventType eventType, tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener)
           
 tigase.jaxmpp.core.client.XmppSessionLogic createSessionLogic(tigase.jaxmpp.core.client.XmppModulesManager modulesManager, tigase.jaxmpp.core.client.PacketWriter writer)
           
protected  void fireOnConnected(tigase.jaxmpp.core.client.SessionObject sessionObject)
           
protected  void fireOnError(tigase.jaxmpp.core.client.xml.Element response, Throwable caught, tigase.jaxmpp.core.client.SessionObject sessionObject)
           
protected  void fireOnTerminate(tigase.jaxmpp.core.client.SessionObject sessionObject)
           
 tigase.jaxmpp.core.client.observer.Observable getObservable()
           
 tigase.jaxmpp.core.client.Connector.State getState()
           
 boolean isSecure()
           
 void keepalive()
           
protected  void onError(tigase.jaxmpp.core.client.xml.Element elem, Throwable ex)
           
 void removeAllListeners()
           
 void removeListener(tigase.jaxmpp.core.client.observer.EventType eventType, tigase.jaxmpp.core.client.observer.Listener<tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener)
           
 void restartStream()
           
 void send(tigase.jaxmpp.core.client.xml.Element stanza)
           
 void send(String data)
           
 void setObservable(tigase.jaxmpp.core.client.observer.Observable observable)
           
protected  void setStage(tigase.jaxmpp.core.client.Connector.State state)
           
 void start()
           
 void stop()
           
 void stop(boolean terminate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final Logger log
Constructor Detail

WebSocketConnector

public WebSocketConnector(tigase.jaxmpp.core.client.observer.Observable parentObservable,
                          tigase.jaxmpp.core.client.SessionObject sessionObject)
Method Detail

addListener

public void addListener(tigase.jaxmpp.core.client.observer.EventType eventType,
                        tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener)
Specified by:
addListener in interface tigase.jaxmpp.core.client.Connector

createSessionLogic

public tigase.jaxmpp.core.client.XmppSessionLogic createSessionLogic(tigase.jaxmpp.core.client.XmppModulesManager modulesManager,
                                                                     tigase.jaxmpp.core.client.PacketWriter writer)
Specified by:
createSessionLogic in interface tigase.jaxmpp.core.client.Connector

getObservable

public tigase.jaxmpp.core.client.observer.Observable getObservable()
Specified by:
getObservable in interface tigase.jaxmpp.core.client.Connector

getState

public tigase.jaxmpp.core.client.Connector.State getState()
Specified by:
getState in interface tigase.jaxmpp.core.client.Connector

isSecure

public boolean isSecure()
Specified by:
isSecure in interface tigase.jaxmpp.core.client.Connector

keepalive

public void keepalive()
               throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Specified by:
keepalive in interface tigase.jaxmpp.core.client.Connector
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

removeAllListeners

public void removeAllListeners()
Specified by:
removeAllListeners in interface tigase.jaxmpp.core.client.Connector

removeListener

public void removeListener(tigase.jaxmpp.core.client.observer.EventType eventType,
                           tigase.jaxmpp.core.client.observer.Listener<tigase.jaxmpp.core.client.Connector.ConnectorEvent> listener)
Specified by:
removeListener in interface tigase.jaxmpp.core.client.Connector

restartStream

public void restartStream()
                   throws tigase.jaxmpp.core.client.xml.XMLException,
                          tigase.jaxmpp.core.client.exceptions.JaxmppException
Specified by:
restartStream in interface tigase.jaxmpp.core.client.Connector
Throws:
tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.exceptions.JaxmppException

send

public void send(tigase.jaxmpp.core.client.xml.Element stanza)
          throws tigase.jaxmpp.core.client.xml.XMLException,
                 tigase.jaxmpp.core.client.exceptions.JaxmppException
Specified by:
send in interface tigase.jaxmpp.core.client.Connector
Throws:
tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.exceptions.JaxmppException

send

public void send(String data)
          throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

setObservable

public void setObservable(tigase.jaxmpp.core.client.observer.Observable observable)
Specified by:
setObservable in interface tigase.jaxmpp.core.client.Connector

start

public void start()
           throws tigase.jaxmpp.core.client.xml.XMLException,
                  tigase.jaxmpp.core.client.exceptions.JaxmppException
Specified by:
start in interface tigase.jaxmpp.core.client.Connector
Throws:
tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.exceptions.JaxmppException

stop

public void stop()
          throws tigase.jaxmpp.core.client.xml.XMLException,
                 tigase.jaxmpp.core.client.exceptions.JaxmppException
Specified by:
stop in interface tigase.jaxmpp.core.client.Connector
Throws:
tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.exceptions.JaxmppException

stop

public void stop(boolean terminate)
          throws tigase.jaxmpp.core.client.xml.XMLException,
                 tigase.jaxmpp.core.client.exceptions.JaxmppException
Specified by:
stop in interface tigase.jaxmpp.core.client.Connector
Throws:
tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.exceptions.JaxmppException

setStage

protected void setStage(tigase.jaxmpp.core.client.Connector.State state)
                 throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

onError

protected void onError(tigase.jaxmpp.core.client.xml.Element elem,
                       Throwable ex)

fireOnConnected

protected void fireOnConnected(tigase.jaxmpp.core.client.SessionObject sessionObject)
                        throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

fireOnError

protected void fireOnError(tigase.jaxmpp.core.client.xml.Element response,
                           Throwable caught,
                           tigase.jaxmpp.core.client.SessionObject sessionObject)
                    throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException

fireOnTerminate

protected void fireOnTerminate(tigase.jaxmpp.core.client.SessionObject sessionObject)
                        throws tigase.jaxmpp.core.client.exceptions.JaxmppException
Throws:
tigase.jaxmpp.core.client.exceptions.JaxmppException


Copyright © 2006–2013 Tigase. All rights reserved.