tigase.server.xmppsession
Class SMResourceConnection

java.lang.Object
  extended by tigase.xmpp.RepositoryAccess
      extended by tigase.xmpp.XMPPResourceConnection
          extended by tigase.server.xmppsession.SMResourceConnection

public class SMResourceConnection
extends XMPPResourceConnection

Created: Feb 27, 2010 8:02:11 PM

Version:
$Rev$
Author:
Artur Hefczyc

Field Summary
 
Fields inherited from class tigase.xmpp.XMPPResourceConnection
PRESENCE_KEY
 
Fields inherited from class tigase.xmpp.RepositoryAccess
domain, NO_ACCESS_TO_REP_MSG, NOT_AUTHORIZED_MSG
 
Constructor Summary
SMResourceConnection(tigase.xmpp.JID connectionId, UserRepository rep, UserAuthRepository authRepo, SessionManagerHandler loginHandler)
          Constructs ...
 
Method Summary
 boolean isServerSession()
          Returns information whether this is a server (SessionManager) session or normal user session.
 boolean isUserId(tigase.xmpp.BareJID bareJID)
          Method description
 
Methods inherited from class tigase.xmpp.XMPPResourceConnection
getActiveSessions, getAllResourcesJIDs, getAuthTime, getBareJID, getCommonSessionData, getConnectionId, getConnectionId, getConnectionStatus, getCreationTime, getDefLang, getjid, getJID, getLastAccessed, getParentSession, getPresence, getPriority, getResource, getSessionData, getSessionId, getSMComponentId, getUserId, getUserName, isAuthorized, isLocalDomain, isResourceSet, login, loginDigest, loginOther, loginPlain, logout, nextStanzaId, putCommonSessionData, putSessionData, queryAuth, removeCommonSessionData, removeParentSession, removeSessionData, setConnectionStatus, setDefLang, setLastAccessed, setParentSession, setPresence, setPriority, setResource, setSessionId, streamClosed, toString, unregister
 
Methods inherited from class tigase.xmpp.RepositoryAccess
addDataList, addOfflineDataList, addPublicDataList, getAuthenticationToken, getAuthState, getData, getDataGroups, getDataKeys, getDataList, getDomain, getDomainAsJID, getOfflineData, getOfflineDataList, getPublicData, getPublicDataList, isAnonymous, loginToken, register, register, removeData, removeDataGroup, removeOfflineData, removeOfflineDataGroup, removePublicData, removePublicDataGroup, setData, setDataList, setDomain, setOfflineData, setOfflineDataList, setPublicData, setPublicDataList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMResourceConnection

public SMResourceConnection(tigase.xmpp.JID connectionId,
                            UserRepository rep,
                            UserAuthRepository authRepo,
                            SessionManagerHandler loginHandler)
Constructs ...

Parameters:
connectionId -
rep -
authRepo -
loginHandler -
Method Detail

isServerSession

public boolean isServerSession()
Returns information whether this is a server (SessionManager) session or normal user session. The server session is used to handle packets addressed to the server itself (local domain name).

Overrides:
isServerSession in class XMPPResourceConnection
Returns:
a boolean value of true if this is the server session and false otherwise.

isUserId

public boolean isUserId(tigase.xmpp.BareJID bareJID)
Method description

Overrides:
isUserId in class XMPPResourceConnection
Parameters:
bareJID -
Returns:


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.