public interface SessionObject extends UserProperties
| Modifier and Type | Interface and Description |
|---|---|
static class |
SessionObject.Scope |
| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN_NAME
Name of property used to keep logical name of XMPP server.
|
static String |
NICKNAME
Name of property used to keep users nickname
|
static String |
PASSWORD
Name of property used to keep users password
|
static String |
RESOURCE
Name of property used to keep XMPP resource
|
static String |
SERVER_NAME
Deprecated.
|
static String |
USER_BARE_JID
Name of property used to keep users JID
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkHandlersTimeout()
Method for process
stanzas without response. |
void |
clear()
Reset state.
|
void |
clear(SessionObject.Scope... scopes)
Reset state.
|
JID |
getBindedJid()
Returns users JID binded on server.
|
PresenceStore |
getPresence()
Returns Store of known presences.
|
<T> T |
getProperty(String key)
Returns property
|
RosterStore |
getRoster()
Returns roster store
|
Element |
getStreamFeatures()
Returns XMPP Stream features
|
BareJID |
getUserBareJid()
Returns users JID
|
SessionObject |
setProperty(SessionObject.Scope scope,
String key,
Object value)
Set property in given scope.
|
SessionObject |
setProperty(String key,
Object value)
Set property in session scope.
|
void |
setStreamFeatures(Element element)
Set XMPP Stream features
|
getUserProperty, setUserPropertystatic final String DOMAIN_NAME
static final String NICKNAME
static final String PASSWORD
static final String RESOURCE
@Deprecated static final String SERVER_NAME
static final String USER_BARE_JID
void checkHandlersTimeout()
throws JaxmppException
stanzas without response.JaxmppExceptionvoid clear()
throws JaxmppException
JaxmppExceptionvoid clear(SessionObject.Scope... scopes) throws JaxmppException
JaxmppExceptionJID getBindedJid()
PresenceStore getPresence()
<T> T getProperty(String key)
key - property nameRosterStore getRoster()
Element getStreamFeatures()
BareJID getUserBareJid()
SessionObject setProperty(SessionObject.Scope scope, String key, Object value)
scope - scope of propertykey - property namevalue - property value. null to unset property.this SessionObjectSessionObject setProperty(String key, Object value)
key - property namevalue - property value. null to unset property.this SessionObjectvoid setStreamFeatures(Element element)
element - element contains featuresCopyright © 2006–2014 Tigase. All rights reserved.