|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.server.BasicComponent
tigase.server.AbstractMessageReceiver
tigase.server.gateways.Gateway
public class Gateway
Describe class Gateway here. Created: Thu Nov 8 08:54:23 2007
Field Summary | |
---|---|
static String |
GEN_GW_ADMINS
Field description |
static String |
GEN_GW_DB
Field description |
static String |
GEN_GW_DB_URI
Field description |
static String |
GW_CLASS_NAME_PROP_KEY
Field description |
static String |
GW_CLASS_NAME_PROP_VAL
Field description |
static String |
GW_DOMAIN_NAME_PROP_KEY
Field description |
static String |
GW_DOMAIN_NAME_PROP_VAL
Field description |
static String |
GW_MODERATED_PROP_KEY
Field description |
static boolean |
GW_MODERATED_PROP_VAL
Field description |
static String |
GW_REPO_CLASS_PROP_KEY
Field description |
static String |
GW_REPO_URL_PROP_KEY
Field description |
Fields inherited from class tigase.server.AbstractMessageReceiver |
---|
HOUR, INCOMING_FILTERS_PROP_KEY, INCOMING_FILTERS_PROP_VAL, MAX_QUEUE_SIZE_PROP_KEY, MAX_QUEUE_SIZE_PROP_VAL, maxQueueSize, MINUTE, OUTGOING_FILTERS_PROP_KEY, OUTGOING_FILTERS_PROP_VAL, SECOND |
Fields inherited from class tigase.server.BasicComponent |
---|
SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
Fields inherited from interface tigase.disco.XMPPService |
---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
Constructor Summary | |
---|---|
Gateway()
|
Method Summary | |
---|---|
String |
decodeLegacyName(String jid)
Method description |
String |
formatJID(String legacyName)
Method description |
void |
gatewayException(GatewayConnection gc,
Throwable exc)
Method description |
Map<String,Object> |
getDefaults(Map<String,Object> params)
Method description |
List<tigase.xml.Element> |
getDiscoFeatures(tigase.xmpp.JID from)
Method description |
tigase.xml.Element |
getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
boolean |
isAdmin(tigase.xmpp.JID jid)
Method description |
void |
loginCompleted(GatewayConnection gc)
Method description |
void |
logout(GatewayConnection gc)
Method description |
void |
packetReceived(Packet packet)
Method description |
void |
processPacket(Packet packet)
Method description |
void |
setProperties(Map<String,Object> props)
Method description |
void |
updateStatus(GatewayConnection gc,
RosterItem item)
Method description |
void |
userRoster(GatewayConnection gc)
Method description |
Methods inherited from class tigase.server.AbstractMessageReceiver |
---|
addOutPacket, addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everyMinute, everySecond, getMaxQueueSize, getRegexRoutings, getStatistics, hashCodeForPacket, isInRegexRoutings, newPacketId, processingThreads, processPacket, release, removeRegexRouting, setMaxQueueSize, setName, setParent, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface tigase.server.ServerComponent |
---|
getComponentId, getName, initializationCompleted, processPacket, release, setName |
Methods inherited from interface tigase.server.MessageReceiver |
---|
getDefHostName |
Field Detail |
---|
public static final String GEN_GW_ADMINS
public static final String GEN_GW_DB
public static final String GEN_GW_DB_URI
public static final String GW_CLASS_NAME_PROP_KEY
public static final String GW_CLASS_NAME_PROP_VAL
public static final String GW_DOMAIN_NAME_PROP_KEY
public static final String GW_DOMAIN_NAME_PROP_VAL
public static final String GW_MODERATED_PROP_KEY
public static final String GW_REPO_CLASS_PROP_KEY
public static final String GW_REPO_URL_PROP_KEY
public static final boolean GW_MODERATED_PROP_VAL
Constructor Detail |
---|
public Gateway()
Method Detail |
---|
public String decodeLegacyName(String jid)
decodeLegacyName
in interface GatewayListener
jid
-
public String formatJID(String legacyName)
formatJID
in interface GatewayListener
legacyName
-
public void gatewayException(GatewayConnection gc, Throwable exc)
gatewayException
in interface GatewayListener
gc
- exc
- public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults
in interface Configurable
getDefaults
in class AbstractMessageReceiver
params
-
public List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
getDiscoFeatures
in interface XMPPService
getDiscoFeatures
in class BasicComponent
from
-
public tigase.xml.Element getDiscoInfo(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
getDiscoInfo
in interface XMPPService
getDiscoInfo
in class BasicComponent
node
- jid
- from
-
public List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
getDiscoItems
in interface XMPPService
getDiscoItems
in class BasicComponent
node
- jid
- from
-
public boolean isAdmin(tigase.xmpp.JID jid)
isAdmin
in class BasicComponent
jid
-
public void loginCompleted(GatewayConnection gc)
loginCompleted
in interface GatewayListener
gc
- public void logout(GatewayConnection gc)
logout
in interface GatewayListener
gc
- public void packetReceived(Packet packet)
packetReceived
in interface GatewayListener
packet
- public void processPacket(Packet packet)
processPacket
in class AbstractMessageReceiver
packet
- public void setProperties(Map<String,Object> props)
setProperties
in interface Configurable
setProperties
in class AbstractMessageReceiver
props
- public void updateStatus(GatewayConnection gc, RosterItem item)
updateStatus
in interface GatewayListener
gc
- item
- public void userRoster(GatewayConnection gc)
userRoster
in interface GatewayListener
gc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |