@Bean(name="AgentOfferModule", active=true) public class OfferModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
ID |
writer, XMLNS
Constructor and Description |
---|
OfferModule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getFeatures() |
tigase.criteria.Criteria |
getModuleCriteria() |
void |
process(tigase.server.Packet packet) |
void |
sendAgentInvitation(tigase.xmpp.jid.BareJID roomJID,
Agent agent,
User user,
Queue queue,
String reason) |
void |
sendOffer(User user,
Agent toAgent,
int timeout) |
void |
sendOfferRevoke(User user,
Agent toAgent,
String reason)
Send revocation of earlier offer to chat to a user.
|
write, write
public static final String ID
public String[] getFeatures()
public tigase.criteria.Criteria getModuleCriteria()
public void process(tigase.server.Packet packet) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
tigase.component.exceptions.ComponentException
tigase.util.stringprep.TigaseStringprepException
public void sendAgentInvitation(tigase.xmpp.jid.BareJID roomJID, Agent agent, User user, Queue queue, String reason) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepException
public void sendOffer(User user, Agent toAgent, int timeout) throws tigase.util.stringprep.TigaseStringprepException
tigase.util.stringprep.TigaseStringprepException
public void sendOfferRevoke(User user, Agent toAgent, String reason) throws tigase.util.stringprep.TigaseStringprepException
user
- user which offer is revoked.toAgent
- agent to send revocation to him.reason
- free form text explaining the reason the offer was revoked.tigase.util.stringprep.TigaseStringprepException
- in case of invalid JID.Copyright © 2016–2019 Tigase. All rights reserved.