public abstract class LastActivityAbstract extends AnnotatedXMPPProcessor implements XMPPProcessorIfc
Modifier and Type | Field and Description |
---|---|
static String |
LAST_ACTIVITY_KEY |
static String |
LAST_PRESENCE_KEY |
static String |
LAST_SHOW_KEY |
static String |
LAST_STATUS_KEY |
static String[] |
SHOW_PATH |
static String[] |
STATUS_PATH |
protected static String |
XMLNS |
ALL_NAMES, ALL_PATHS, cmpInfo
CLIENT_XMLNS
Constructor and Description |
---|
LastActivityAbstract() |
Modifier and Type | Method and Description |
---|---|
protected static long |
getLastActivity(NonAuthUserRepository repo,
BareJID requestedJid) |
static long |
getLastActivity(XMPPResourceConnection session,
boolean global) |
protected static long |
getLastActivity(XMPPResourceConnection session,
Packet packet) |
protected Optional<Element> |
getPresence(NonAuthUserRepository repo,
BareJID requestedJid) |
protected static String |
getShow(NonAuthUserRepository repo,
BareJID requestedJid) |
protected static String |
getShow(XMPPResourceConnection session) |
protected static String |
getStatus(NonAuthUserRepository repo,
BareJID requestedJid) |
protected static String |
getStatus(XMPPResourceConnection session) |
protected static String |
getType(NonAuthUserRepository repo,
BareJID requestedJid) |
protected static String |
getType(XMPPResourceConnection session) |
protected static void |
persistLastActivity(XMPPResourceConnection session,
Element presence) |
id, supDiscoFeatures, supElementNamePaths, supNamespaces, supStreamFeatures, supTypes
canHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, isSupporting, supElements, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
process
canHandle, concurrentQueuesNo, concurrentThreadsPerQueue, getComponentInfo, getStatistics, id, init, isSupporting, supDiscoFeatures, supElementNamePaths, supElements, supNamespaces, supStreamFeatures, supTypes
compareTo
protected static final String XMLNS
public static final String LAST_ACTIVITY_KEY
public static final String LAST_STATUS_KEY
public static final String LAST_SHOW_KEY
public static final String LAST_PRESENCE_KEY
public static final String[] STATUS_PATH
public static final String[] SHOW_PATH
protected static long getLastActivity(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException
UserNotFoundException
public static long getLastActivity(XMPPResourceConnection session, boolean global)
protected static long getLastActivity(XMPPResourceConnection session, Packet packet)
protected static String getStatus(XMPPResourceConnection session)
protected static String getShow(XMPPResourceConnection session)
protected static String getShow(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException
UserNotFoundException
protected static String getType(XMPPResourceConnection session)
protected static String getType(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException
UserNotFoundException
protected Optional<Element> getPresence(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException
UserNotFoundException
protected static String getStatus(NonAuthUserRepository repo, BareJID requestedJid) throws UserNotFoundException
UserNotFoundException
protected static void persistLastActivity(XMPPResourceConnection session, Element presence)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.