Package tigase.archive.processors
Class Xep0136MessageArchivingProcessor
- java.lang.Object
-
- tigase.xmpp.XMPPProcessor
-
- tigase.archive.processors.Xep0136MessageArchivingProcessor
-
- All Implemented Interfaces:
Comparable<tigase.xmpp.XMPPImplIfc>,tigase.xmpp.XMPPImplIfc,tigase.xmpp.XMPPProcessorConcurrencyAwareIfc,tigase.xmpp.XMPPProcessorIfc
@Bean(name="message-archive-xep-0136", parent=tigase.server.xmppsession.SessionManager.class, active=true) public class Xep0136MessageArchivingProcessor extends tigase.xmpp.XMPPProcessor implements tigase.xmpp.XMPPProcessorIfcMessageArchingPlugin is implementation of plugin which forwards messages with type set to "chat" to MessageArchivingComponent to store this messages in message archive.
-
-
Constructor Summary
Constructors Constructor Description Xep0136MessageArchivingProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()voidprocess(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, tigase.db.NonAuthUserRepository repo, Queue<tigase.server.Packet> results, Map<String,Object> settings)protected voidrequestingPreferrences(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, Queue<tigase.server.Packet> results)tigase.xml.Element[]supDiscoFeatures(tigase.xmpp.XMPPResourceConnection session)String[][]supElementNamePaths()String[]supNamespaces()protected voidupdateAutoSave(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, tigase.xml.Element auto, Queue<tigase.server.Packet> results)protected voidupdatingPreferences(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, tigase.xml.Element pref, Queue<tigase.server.Packet> results)-
Methods inherited from class tigase.xmpp.XMPPProcessor
canHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getQueueSize, getStatistics, getThreadsNo, init, isSupporting, supElements, supStreamFeatures, supTypes, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
MUC_SAVE
public static final String MUC_SAVE
- See Also:
- Constant Field Values
-
LIST
public static final String LIST
- See Also:
- Constant Field Values
-
REMOVE
public static final String REMOVE
- See Also:
- Constant Field Values
-
RETRIEVE
public static final String RETRIEVE
- See Also:
- Constant Field Values
-
XEP0136NS
public static final String XEP0136NS
- See Also:
- Constant Field Values
-
AUTO
protected static final String AUTO
- See Also:
- Constant Field Values
-
ID
protected static final String ID
- See Also:
- Constant Field Values
-
SETTINGS
protected static final String SETTINGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public String id()
- Specified by:
idin interfacetigase.xmpp.XMPPImplIfc
-
supElementNamePaths
public String[][] supElementNamePaths()
- Specified by:
supElementNamePathsin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supElementNamePathsin classtigase.xmpp.XMPPProcessor
-
supNamespaces
public String[] supNamespaces()
- Specified by:
supNamespacesin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supNamespacesin classtigase.xmpp.XMPPProcessor
-
supDiscoFeatures
public tigase.xml.Element[] supDiscoFeatures(tigase.xmpp.XMPPResourceConnection session)
- Specified by:
supDiscoFeaturesin interfacetigase.xmpp.XMPPImplIfc- Overrides:
supDiscoFeaturesin classtigase.xmpp.XMPPProcessor
-
process
public void process(tigase.server.Packet packet, tigase.xmpp.XMPPResourceConnection session, tigase.db.NonAuthUserRepository repo, Queue<tigase.server.Packet> results, Map<String,Object> settings) throws tigase.xmpp.XMPPException- Specified by:
processin interfacetigase.xmpp.XMPPProcessorIfc- Throws:
tigase.xmpp.XMPPException
-
requestingPreferrences
protected void requestingPreferrences(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, Queue<tigase.server.Packet> results) throws tigase.xmpp.NotAuthorizedException, tigase.db.TigaseDBException- Throws:
tigase.xmpp.NotAuthorizedExceptiontigase.db.TigaseDBException
-
updatingPreferences
protected void updatingPreferences(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, tigase.xml.Element pref, Queue<tigase.server.Packet> results) throws tigase.xmpp.PacketErrorTypeException, tigase.xmpp.NotAuthorizedException- Throws:
tigase.xmpp.PacketErrorTypeExceptiontigase.xmpp.NotAuthorizedException
-
updateAutoSave
protected void updateAutoSave(tigase.xmpp.XMPPResourceConnection session, tigase.server.Packet packet, tigase.xml.Element auto, Queue<tigase.server.Packet> results) throws tigase.xmpp.PacketErrorTypeException, tigase.xmpp.NotAuthorizedException- Throws:
tigase.xmpp.PacketErrorTypeExceptiontigase.xmpp.NotAuthorizedException
-
-