|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.AbstractSessionObject
public abstract class AbstractSessionObject
Default representation of SessionObject
| Field Summary | |
|---|---|
protected Logger |
log
|
protected PresenceStore |
presence
|
protected Map<String,Object> |
properties
|
protected ResponseManager |
responseManager
|
protected RosterStore |
roster
|
protected Element |
streamFeatures
|
protected Map<String,Object> |
userProperties
|
| Fields inherited from interface tigase.jaxmpp.core.client.SessionObject |
|---|
DOMAIN_NAME, NICKNAME, PASSWORD, RESOURCE, SERVER_NAME, USER_BARE_JID |
| Constructor Summary | |
|---|---|
protected |
AbstractSessionObject()
|
| Method Summary | ||
|---|---|---|
void |
checkHandlersTimeout()
Method for process stanzas without response. |
|
void |
clear()
Reset state. |
|
JID |
getBindedJid()
Returns users JID binded on server. |
|
PresenceStore |
getPresence()
Returns Store of known presences. |
|
|
getProperty(String key)
Returns property |
|
Runnable |
getResponseHandler(Element element,
PacketWriter writer)
|
|
RosterStore |
getRoster()
Returns roster store |
|
Element |
getStreamFeatures()
Returns XMPP Stream features |
|
BareJID |
getUserBareJid()
Returns users JID |
|
|
getUserProperty(String key)
Get user property. |
|
String |
registerResponseHandler(Element stanza,
Long timeout,
AsyncCallback callback)
|
|
SessionObject |
setProperty(String key,
Object value)
Set property. |
|
void |
setStreamFeatures(Element element)
Set XMPP Stream features |
|
UserProperties |
setUserProperty(String key,
Object value)
Set user property. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Logger log
protected PresenceStore presence
protected Map<String,Object> properties
protected ResponseManager responseManager
protected RosterStore roster
protected Element streamFeatures
protected Map<String,Object> userProperties
| Constructor Detail |
|---|
protected AbstractSessionObject()
| Method Detail |
|---|
public void checkHandlersTimeout()
throws JaxmppException
stanzas without response.
checkHandlersTimeout in interface SessionObjectJaxmppException
public void clear()
throws JaxmppException
clear in interface SessionObjectJaxmppExceptionpublic JID getBindedJid()
getBindedJid in interface SessionObjectpublic PresenceStore getPresence()
getPresence in interface SessionObjectpublic <T> T getProperty(String key)
getProperty in interface SessionObjectkey - property name
public Runnable getResponseHandler(Element element,
PacketWriter writer)
throws JaxmppException
JaxmppExceptionpublic RosterStore getRoster()
getRoster in interface SessionObjectpublic Element getStreamFeatures()
getStreamFeatures in interface SessionObjectpublic BareJID getUserBareJid()
getUserBareJid in interface SessionObjectpublic <T> T getUserProperty(String key)
getUserProperty in interface UserPropertieskey - property name
null if property isn't set.
public String registerResponseHandler(Element stanza,
Long timeout,
AsyncCallback callback)
throws XMLException
XMLException
public SessionObject setProperty(String key,
Object value)
setProperty in interface SessionObjectkey - property namevalue - property value. null to unset property.
this SessionObjectpublic void setStreamFeatures(Element element)
setStreamFeatures in interface SessionObjectelement - element contains features
public UserProperties setUserProperty(String key,
Object value)
setUserProperty in interface UserPropertieskey - property namevalue - property value. null to unset property
this UserProperties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||