tigase.jaxmpp.core.client
Class Connector.ConnectorEvent

java.lang.Object
  extended by tigase.jaxmpp.core.client.observer.BaseEvent
      extended by tigase.jaxmpp.core.client.Connector.ConnectorEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractBoshConnector.BoshConnectorEvent
Enclosing interface:
Connector

public static class Connector.ConnectorEvent
extends BaseEvent

Event generated by Connector.

See Also:
Serialized Form

Constructor Summary
Connector.ConnectorEvent(EventType type, SessionObject sessionObject)
           
 
Method Summary
 Throwable getCaught()
          Reuturn exception if happend.
static long getSerialversionuid()
           
 Element getStanza()
          Return received stanza
 StreamError getStreamError()
          Returns stream error cause.
 Element getStreamErrorElement()
          Returns element wrapper around <error> receved element.
 void setCaught(Throwable caught)
           
 void setStanza(Element stanza)
           
 void setStreamError(StreamError streamError)
           
 void setStreamErrorElement(Element streamErrorElement)
           
 
Methods inherited from class tigase.jaxmpp.core.client.observer.BaseEvent
getSessionObject, getType, isHandled, setHandled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector.ConnectorEvent

public Connector.ConnectorEvent(EventType type,
                                SessionObject sessionObject)
Method Detail

getSerialversionuid

public static long getSerialversionuid()

getCaught

public Throwable getCaught()
Reuturn exception if happend.

Returns:
exception. null if event isn't fired because of exception.

getStanza

public Element getStanza()
Return received stanza

Returns:
stanza Element or null if event isn't fired because of stanza processing.

getStreamError

public StreamError getStreamError()
Returns stream error cause.

Returns:
StreamError null if event isn't fired because of stream error.

getStreamErrorElement

public Element getStreamErrorElement()
Returns element wrapper around <error> receved element.

Returns:
error element or null if event isn't fired because of stream error.

setCaught

public void setCaught(Throwable caught)

setStanza

public void setStanza(Element stanza)

setStreamError

public void setStreamError(StreamError streamError)

setStreamErrorElement

public void setStreamErrorElement(Element streamErrorElement)


Copyright © 2006-2012 Tigase. All Rights Reserved.