|
||||||||||
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.ConnectionManager<XMPPIOService<List<ComponentConnection>>>
tigase.server.ext.ComponentProtocol
public class ComponentProtocol
Created: Sep 30, 2009 8:28:13 PM
Field Summary | |
---|---|
static String |
AUTHENTICATION_TIMEOUT_PROP_KEY
Field description |
static String |
CLOSE_ON_SEQUENCE_ERROR_PROP_KEY
Field description |
static String |
EXTCOMP_BIND_HOSTNAMES
Field description |
static String |
EXTCOMP_REPO_CLASS_PROP_KEY
Field description |
static String |
EXTCOMP_REPO_CLASS_PROP_VAL
Field description |
static String |
EXTCOMP_REPO_CLASS_PROPERTY
Field description |
static String |
IDENTITY_TYPE_KEY
Field description |
static String |
IDENTITY_TYPE_VAL
Field description |
static String |
MAX_AUTH_ATTEMPTS_PROP_KEY
Field description |
static String |
PACK_ROUTED_KEY
Field description |
boolean |
PACK_ROUTED_VAL
Field description |
static String |
RETURN_SERVICE_DISCO_KEY
Field description |
static boolean |
RETURN_SERVICE_DISCO_VAL
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 |
---|
admins, SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
Fields inherited from interface tigase.server.ext.ComponentProtocolHandler |
---|
EXTCOMP_BIND_HOSTNAMES_PROP_KEY, REPO_ITEM_KEY |
Fields inherited from interface tigase.disco.XMPPService |
---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
Constructor Summary | |
---|---|
ComponentProtocol()
Constructs ... |
Methods inherited from class tigase.server.ConnectionManager |
---|
addWaitingTask, countIOServices, doForAllServices, getDefPlainPorts, getDefSSLPorts, getParamsForPort, getServiceId, getServiceId, getUniqueId, getXMPPIOService, initializationCompleted, packetsReady, processPacket, release, setName, start, writePacketsToSocket, writePacketToSocket, writePacketToSocket, writeRawData |
Methods inherited from class tigase.server.AbstractMessageReceiver |
---|
addOutPacket, addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everyMinute, everySecond, getRegexRoutings, isInRegexRoutings, newPacketId, processPacket, removeRegexRouting, setMaxQueueSize, setParent, 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.ext.ComponentProtocolHandler |
---|
newPacketId |
Methods inherited from interface tigase.server.MessageReceiver |
---|
getDefHostName |
Methods inherited from interface tigase.server.ServerComponent |
---|
getComponentId, getName |
Field Detail |
---|
public static final String EXTCOMP_REPO_CLASS_PROPERTY
public static final String EXTCOMP_REPO_CLASS_PROP_KEY
public static final String EXTCOMP_REPO_CLASS_PROP_VAL
public static final String EXTCOMP_BIND_HOSTNAMES
public static final String PACK_ROUTED_KEY
public static final String RETURN_SERVICE_DISCO_KEY
public static final boolean RETURN_SERVICE_DISCO_VAL
public static final String IDENTITY_TYPE_KEY
public static final String IDENTITY_TYPE_VAL
public static final String CLOSE_ON_SEQUENCE_ERROR_PROP_KEY
public static final String MAX_AUTH_ATTEMPTS_PROP_KEY
public static final String AUTHENTICATION_TIMEOUT_PROP_KEY
public boolean PACK_ROUTED_VAL
Constructor Detail |
---|
public ComponentProtocol()
Method Detail |
---|
public void authenticated(XMPPIOService<List<ComponentConnection>> serv)
authenticated
in interface ComponentProtocolHandler
serv
- public void authenticationFailed(XMPPIOService<List<ComponentConnection>> serv, Packet packet)
authenticationFailed
in interface ComponentProtocolHandler
serv
- packet
- public void bindHostname(String hostname, XMPPIOService<List<ComponentConnection>> serv)
bindHostname
in interface ComponentProtocolHandler
hostname
- serv
- public CompRepoItem getCompRepoItem(String hostname)
getCompRepoItem
in interface ComponentProtocolHandler
hostname
-
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults
in interface Configurable
getDefaults
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
params
-
public String getDiscoCategoryType()
getDiscoCategoryType
in class BasicComponent
public String getDiscoDescription()
getDiscoDescription
in class BasicComponent
public ExtProcessor getProcessor(String key)
getProcessor
in interface ComponentProtocolHandler
key
-
public void getStatistics(StatisticsList list)
getStatistics
in interface StatisticsContainer
getStatistics
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
list
- public List<tigase.xml.Element> getStreamFeatures(XMPPIOService<List<ComponentConnection>> serv)
getStreamFeatures
in interface ComponentProtocolHandler
serv
-
public StreamOpenHandler getStreamOpenHandler(String xmlns)
getStreamOpenHandler
in interface ComponentProtocolHandler
xmlns
-
public int hashCodeForPacket(Packet packet)
hashCodeForPacket
in class AbstractMessageReceiver
packet
-
public void initBindings(javax.script.Bindings binds)
initBindings
in class BasicComponent
binds
- public Queue<Packet> processSocketData(XMPPIOService<List<ComponentConnection>> serv)
processSocketData
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
serv
-
public int processingThreads()
processingThreads
in class AbstractMessageReceiver
public void serviceStarted(XMPPIOService<List<ComponentConnection>> serv)
serviceStarted
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
serv
- public boolean serviceStopped(XMPPIOService<List<ComponentConnection>> service)
serviceStopped
in interface IOServiceListener<XMPPIOService<List<ComponentConnection>>>
serviceStopped
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
service
-
public void setProperties(Map<String,Object> properties)
setProperties
in interface Configurable
setProperties
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
properties
- public void unbindHostname(String hostname, XMPPIOService<List<ComponentConnection>> serv)
unbindHostname
in interface ComponentProtocolHandler
hostname
- serv
- public boolean writePacketToSocket(XMPPIOService<List<ComponentConnection>> ios, Packet p)
writePacketToSocket
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
ios
- p
-
public void xmppStreamClosed(XMPPIOService<List<ComponentConnection>> serv)
xmppStreamClosed
in interface XMPPIOServiceListener<XMPPIOService<List<ComponentConnection>>>
serv
- public String xmppStreamOpened(XMPPIOService<List<ComponentConnection>> serv, Map<String,String> attribs)
xmppStreamOpened
in interface XMPPIOServiceListener<XMPPIOService<List<ComponentConnection>>>
serv
- attribs
-
protected long getMaxInactiveTime()
getMaxInactiveTime
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
protected Integer getMaxQueueSize(int def)
getMaxQueueSize
in class AbstractMessageReceiver
protected XMPPIOService<List<ComponentConnection>> getXMPPIOService(Packet p)
getXMPPIOService
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
protected XMPPIOService<List<ComponentConnection>> getXMPPIOServiceInstance()
getXMPPIOServiceInstance
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
protected boolean isHighThroughput()
isHighThroughput
in class ConnectionManager<XMPPIOService<List<ComponentConnection>>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |