public abstract class AbstractModule extends Object implements Module
| Modifier and Type | Field and Description |
|---|---|
protected CommandManager |
commandManager |
HTTP_CONTEXT_PATH_KEY, HTTP_SERVER_KEY, VHOSTS_KEY| Constructor and Description |
|---|
AbstractModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addOutPacket(tigase.server.Packet packet) |
boolean |
addOutPacket(tigase.server.Packet packet,
Integer timeout,
PacketWriter.Callback callback) |
tigase.db.AuthRepository |
getAuthRepository() |
Map<String,Object> |
getDefaults() |
tigase.xml.Element |
getDiscoInfo(String node,
boolean isAdmin) |
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from) |
String[] |
getFeatures() |
tigase.xmpp.JID |
getJid() |
tigase.db.UserRepository |
getUserRepository() |
void |
init(tigase.xmpp.JID jid,
PacketWriter writer) |
void |
initBindings(Bindings binds) |
boolean |
isAdmin(tigase.xmpp.BareJID user) |
boolean |
isRequestAllowed(String key,
String domain,
String path) |
boolean |
processPacket(tigase.server.Packet packet) |
void |
setProperties(Map<String,Object> props) |
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getNameprotected CommandManager commandManager
public boolean addOutPacket(tigase.server.Packet packet)
addOutPacket in interface Modulepublic boolean addOutPacket(tigase.server.Packet packet,
Integer timeout,
PacketWriter.Callback callback)
addOutPacket in interface Modulepublic String[] getFeatures()
getFeatures in interface Modulepublic boolean processPacket(tigase.server.Packet packet)
processPacket in interface Modulepublic tigase.xml.Element getDiscoInfo(String node, boolean isAdmin)
getDiscoInfo in interface Modulepublic List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
getDiscoItems in interface Modulepublic Map<String,Object> getDefaults()
getDefaults in interface Modulepublic void setProperties(Map<String,Object> props)
setProperties in interface Modulepublic void init(tigase.xmpp.JID jid,
PacketWriter writer)
public void initBindings(Bindings binds)
initBindings in interface Modulepublic boolean isRequestAllowed(String key, String domain, String path)
isRequestAllowed in interface Modulepublic tigase.db.UserRepository getUserRepository()
getUserRepository in interface Modulepublic tigase.db.AuthRepository getAuthRepository()
getAuthRepository in interface ModuleCopyright © 2015 Tigase. All rights reserved.