Package org.jivesoftware.openfire
Class OfflineMessageStrategy
java.lang.Object
org.jivesoftware.openfire.container.BasicModule
org.jivesoftware.openfire.OfflineMessageStrategy
- All Implemented Interfaces:
Module,ServerFeaturesProvider
Controls what is done with offline messages.
- Author:
- Iain Shigeoka
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddListener(OfflineMessageListener listener) Registers a listener to receive events.Returns an Iterator (of String) with the supported features by the server.intgetQuota()getType()voidinitialize(XMPPServer server) Initializes the basic module.static voidremoveListener(OfflineMessageListener listener) Unregisters a listener to receive events.voidsetQuota(int quota) voidvoidstoreOffline(org.xmpp.packet.Message message) Methods inherited from class org.jivesoftware.openfire.container.BasicModule
destroy, getName, start, stop
-
Constructor Details
-
OfflineMessageStrategy
public OfflineMessageStrategy()
-
-
Method Details
-
getQuota
public int getQuota() -
setQuota
public void setQuota(int quota) -
getType
-
setType
-
storeOffline
public void storeOffline(org.xmpp.packet.Message message) -
addListener
Registers a listener to receive events.- Parameters:
listener- the listener.
-
removeListener
Unregisters a listener to receive events.- Parameters:
listener- the listener.
-
initialize
Description copied from class:BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
- Specified by:
initializein interfaceModule- Overrides:
initializein classBasicModule- Parameters:
server- the server hosting this module.
-
getFeatures
Description copied from interface:ServerFeaturesProviderReturns an Iterator (of String) with the supported features by the server. The features to include are the features offered and supported protocols by the SERVER. The idea is that different modules may provide their features that will ultimately be part of the features offered by the server.- Specified by:
getFeaturesin interfaceServerFeaturesProvider- Returns:
- an Iterator (of String) with the supported features by the server.
-