@Bean(name="AgentPresenceModule", active=true) public class PresenceModule extends AbstractModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
writer, XMLNSEMPTY_FEATURES| Constructor and Description |
|---|
PresenceModule() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getFeatures()
Returns XMPP features offered by module.
|
Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming stanza.
|
void |
process(Packet packet)
Process incoming stanza.
|
void |
sendAgentStatusUpdate(Agent agent)
Workgroup Status Update.
|
void |
sendPresenceUpdateOf(Agent agent) |
void |
sendQueueStatusDetailsUpdate(Agent agent)
Queue Status Update.
|
void |
sendQueueStatusUpdate(Agent agent)
Queue Status Update.
|
write, writepublic static final String ID
public String[] getFeatures()
Modulenull.public Criteria getModuleCriteria()
Modulepublic void process(Packet packet) throws ComponentException, TigaseStringprepException
Modulepacket - received stanza.ComponentException - if stanza can't be processed correctly. ComponentException is converted to error
stanza and returned to stanza sender.TigaseStringprepException - if there was an error during stringprep processing.public void sendAgentStatusUpdate(Agent agent) throws TigaseStringprepException
agent - agent to send update.TigaseStringprepException - in case of invalid JID.public void sendPresenceUpdateOf(Agent agent) throws TigaseStringprepException
TigaseStringprepExceptionpublic void sendQueueStatusDetailsUpdate(Agent agent) throws TigaseStringprepException
agent - agent to which update will be sent.TigaseStringprepException - in case of invalid JID.public void sendQueueStatusUpdate(Agent agent) throws TigaseStringprepException
agent - agent to which update will be sent.TigaseStringprepException - in case of invalid JID.Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.