tigase.jaxmpp.core.client
Interface SessionObject

All Superinterfaces:
UserProperties
All Known Implementing Classes:
AbstractSessionObject

public interface SessionObject
extends UserProperties

Session object is for store state of connection, modules etc. All states will be removed on reset (clear() method}).

Author:
bmalkow

Field Summary
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
 
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.
<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(String key, Object value)
          Set property.
 void setStreamFeatures(Element element)
          Set XMPP Stream features
 
Methods inherited from interface tigase.jaxmpp.core.client.UserProperties
getUserProperty, setUserProperty
 

Field Detail

DOMAIN_NAME

static final String DOMAIN_NAME
Name of property used to keep logical name of XMPP server. Usually it is equals to hostname of users JID.

See Also:
Constant Field Values

NICKNAME

static final String NICKNAME
Name of property used to keep users nickname

See Also:
Constant Field Values

PASSWORD

static final String PASSWORD
Name of property used to keep users password

See Also:
Constant Field Values

RESOURCE

static final String RESOURCE
Name of property used to keep XMPP resource

See Also:
Constant Field Values

SERVER_NAME

@Deprecated
static final String SERVER_NAME
Deprecated. 
Name of property used to keep logical name of XMPP server. Usually it is equals to hostname of users JID.

See Also:
Constant Field Values

USER_BARE_JID

static final String USER_BARE_JID
Name of property used to keep users JID

See Also:
Constant Field Values
Method Detail

checkHandlersTimeout

void checkHandlersTimeout()
                          throws JaxmppException
Method for process stanzas without response.

Throws:
JaxmppException

clear

void clear()
           throws JaxmppException
Reset state. Clears all properties stored by modules. Users properties are keeped.

Throws:
JaxmppException

getBindedJid

JID getBindedJid()
Returns users JID binded on server.

Returns:
Jabber ID

getPresence

PresenceStore getPresence()
Returns Store of known presences.

Returns:
presence store

getProperty

<T> T getProperty(String key)
Returns property

Parameters:
key - property name
Returns:
property

getRoster

RosterStore getRoster()
Returns roster store

Returns:
roster

getStreamFeatures

Element getStreamFeatures()
Returns XMPP Stream features

Returns:
element with features

getUserBareJid

BareJID getUserBareJid()
Returns users JID

Returns:

setProperty

SessionObject setProperty(String key,
                          Object value)
Set property.

Parameters:
key - property name
value - property value. null to unset property.
Returns:
instance of this SessionObject

setStreamFeatures

void setStreamFeatures(Element element)
Set XMPP Stream features

Parameters:
element - element contains features


Copyright © 2006-2012 Tigase. All Rights Reserved.