public interface SessionObject extends UserProperties
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SessionObject.ClearedHandler
Implemented by handlers of SessionObject.ClearedHandler.ClearedEvent.
|
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 |
clear()
Reset state.
|
void |
clear(SessionObject.Scope... scopes)
Reset state.
|
<T> T |
getProperty(String key)
Returns property
|
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.
|
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 clear()
throws JaxmppException
JaxmppExceptionvoid clear(SessionObject.Scope... scopes) throws JaxmppException
JaxmppException<T> T getProperty(String key)
key - property nameBareJID 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 SessionObjectCopyright © 2006–2015 Tigase. All rights reserved.